find the coefficients of the polynomial calculated by plpolf/plpoly
|coeff||double*||--||array receiving polynomial coefficients|
Descriptionplpolc returns, in coeff the normal coefficients of a polynomial calculated by plpoly or plpolf. Note that the array of coefficients is to be declared double.
See alsoplpoly plpolf
ExamplesThe following Simplot-program does not call plinit, because there is nothing to plot. It calculates the same polynomial as the example in the manual page
n=4 plrdx n 1991 1991.5 1992 1992.1 plrdy n 800 700 1600 2200 plpolf n 2 plpolcprints the following:
exp coeff 0 9801503565.8875 1 -9844259.1106 2 2471.8004which tells that the equation of the polynomial is: y = 9801503565.8875 - 9844259.1106 x + 2471.8004 x2