From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- math/nlfit/nleval.gx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 math/nlfit/nleval.gx (limited to 'math/nlfit/nleval.gx') diff --git a/math/nlfit/nleval.gx b/math/nlfit/nleval.gx new file mode 100644 index 00000000..e116982b --- /dev/null +++ b/math/nlfit/nleval.gx @@ -0,0 +1,25 @@ +include +$if (datatype == r) +include "nlfitdefr.h" +$else +include "nlfitdefd.h" +$endif + + +# NLEVAL -- Evaluate the fit at a point. + +PIXEL procedure nleval$t (nl, x, nvars) + +pointer nl # nlfit descriptor +PIXEL 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