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/curfit/cvcoeff.gx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 math/curfit/cvcoeff.gx (limited to 'math/curfit/cvcoeff.gx') diff --git a/math/curfit/cvcoeff.gx b/math/curfit/cvcoeff.gx new file mode 100644 index 00000000..46c58c0f --- /dev/null +++ b/math/curfit/cvcoeff.gx @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +$if (datatype == r) +include "curfitdef.h" +$else +include "dcurfitdef.h" +$endif + +# CVCOEFF -- Procedure to fetch the number and magnitude of the coefficients. + +$if (datatype == r) +procedure cvcoeff (cv, coeff, ncoeff) +$else +procedure dcvcoeff (cv, coeff, ncoeff) +$endif + +pointer cv # curve descriptor +PIXEL coeff[ARB] # the coefficients of the fit +int ncoeff # the number of coefficients + +begin + ncoeff = CV_NCOEFF(cv) + + # fetch coefficients + call amov$t (COEFF(CV_COEFF(cv)), coeff, ncoeff) +end -- cgit