aboutsummaryrefslogtreecommitdiff
path: root/math/curfit/doc/cvpower.hlp
diff options
context:
space:
mode:
Diffstat (limited to 'math/curfit/doc/cvpower.hlp')
-rw-r--r--math/curfit/doc/cvpower.hlp40
1 files changed, 40 insertions, 0 deletions
diff --git a/math/curfit/doc/cvpower.hlp b/math/curfit/doc/cvpower.hlp
new file mode 100644
index 00000000..386558ce
--- /dev/null
+++ b/math/curfit/doc/cvpower.hlp
@@ -0,0 +1,40 @@
+.help cvpower Jan86 "Curfit Package"
+.ih
+NAME
+cvpower -- convert coefficients to power series coefficients.
+.ih
+SYNOPSIS
+.nf
+include <math/curfit.h>
+include "curfitdef.h"
+
+cvpower (cv, ps_coeff, ncoeff)
+
+pointer cv # Curve descriptor
+real ps_coeff[ncoeff] # Power series coefficients
+int ncoeff # Number of coefficients in fit
+.fi
+.ih
+ARGUMENTS
+.ls cv
+Pointer to the curve descriptor structure.
+.le
+.ls ps_coeff
+The output array of power series coefficients.
+.le
+.ls ncoeff
+The output number of coefficients in the fit.
+.le
+.ih
+DESCRIPTION
+This routine routines the equivlalent power series fit coefficients
+and the number of coefficients.
+
+The coefficients of either a legendre or chebyshev solution can be converted
+to power series coefficients of the form y = a0 + a1*x + a2*x**2 + a3*x**3...
+The output coefficients are scaled to the original data range.
+.ih
+NOTES
+Only legendre and chebyshev coefficients are converted. An error is
+reported for other curve types.
+.endhelp