aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nleval.gx
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /math/nlfit/nleval.gx
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/nlfit/nleval.gx')
-rw-r--r--math/nlfit/nleval.gx25
1 files changed, 25 insertions, 0 deletions
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 <math/nlfit.h>
+$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