aboutsummaryrefslogtreecommitdiff
path: root/math/curfit/cvcoeffr.x
blob: 69e738488f861153168a259f55eb55c6cb8538df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include "curfitdef.h"

# CVCOEFF -- Procedure to fetch the number and magnitude of the coefficients.

procedure cvcoeff (cv, coeff, ncoeff)

pointer	cv		# curve descriptor
real	coeff[ARB]	# the coefficients of the fit
int	ncoeff		# the number of coefficients

begin
	ncoeff = CV_NCOEFF(cv)

	# fetch coefficients
	call amovr (COEFF(CV_COEFF(cv)), coeff, ncoeff)
end