aboutsummaryrefslogtreecommitdiff
path: root/math/curfit/cvcoeffd.x
blob: 1d63b9cf462cf83292566a0afb74284d8280b8d5 (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 "dcurfitdef.h"

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

procedure dcvcoeff (cv, coeff, ncoeff)

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

begin
	ncoeff = CV_NCOEFF(cv)

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