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/nlstatd.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 math/nlfit/nlstatd.x (limited to 'math/nlfit/nlstatd.x') diff --git a/math/nlfit/nlstatd.x b/math/nlfit/nlstatd.x new file mode 100644 index 00000000..73661ce8 --- /dev/null +++ b/math/nlfit/nlstatd.x @@ -0,0 +1,26 @@ +include +include "nlfitdefd.h" + +# NLSTAT[RD] - Fetch an NLFIT real/double parameter + +double procedure nlstatd (nl, param) + +pointer nl # pointer to NLFIT structure +int param # parameter to be fetched + +begin + switch (param) { + case NLSUMSQ: + return (NL_SUMSQ(nl)) + case NLOLDSQ: + return (NL_OLDSQ(nl)) + case NLTOL: + return (NL_TOL(nl)) + case NLLAMBDA: + return (NL_LAMBDA(nl)) + case NLSCATTER: + return (NL_SCATTER(nl)) + default: + return (INDEFD) + } +end -- cgit