diff options
Diffstat (limited to 'math/nlfit/nlevald.x')
-rw-r--r-- | math/nlfit/nlevald.x | 21 |
1 files changed, 21 insertions, 0 deletions
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 <math/nlfit.h> +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 |