From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- math/nlfit/nlevald.x | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 math/nlfit/nlevald.x (limited to 'math/nlfit/nlevald.x') diff --git a/math/nlfit/nlevald.x b/math/nlfit/nlevald.x new file mode 100644 index 00000000..c7710acc --- /dev/null +++ b/math/nlfit/nlevald.x @@ -0,0 +1,21 @@ +include +include "nlfitdefd.h" + + +# NLEVAL -- Evaluate the fit at a point. + +double procedure nlevald (nl, x, nvars) + +pointer nl # nlfit descriptor +double x[ARB] # x values +int nvars # number of variables + +real zfit + +begin + # Evaluate the function. + call zcall5 (NL_FUNC(nl), x, nvars, PARAM(NL_PARAM(nl)), + NL_NPARAMS(nl), zfit) + + return (zfit) +end -- cgit