CALCS BAS006
POLYNOMIAL EQUATION OF LINE

NOTATION

XcoordX coordinate, independent variable, definition point
YcoordY coordinate, dependent variable, definition point
XX coord, independent variable, sample point
YY coord, dependent variable, sample point

APPLICATION

Curve fitting from values at sample points
Maximum number of Points 20.

OUTPUT

Polynomial function
Sample points X Y coordinates
Graphical plot of curve between start & end points

SEE ALSO

other progs & procs

THEORY

references

GUIDANCE

Use the minimum practical number of sample points as higher order terms may cause undesireable oscillations along the curve.

INPUT FORMAT

DAT006title
PointXcoordYcoord
tabdelimiteddata
Xsample
data
ENDDAT

EXAMPLE

Input

DAT006example
PointXcoordYcoord
11.01.0
22.02.0
33.00.5
Xsample
1
2
3
ENDDAT

Output

polynomial function of line is:
Y =
-1.250E0 *X^2.000E0
4.750E0 *X^1.000E0
-2.500E0 *X^0.000E0
chosen point on line
when X =1.000E0 Y = 1.000E0
when X =2.000E0 Y = 2.000E0
when X =3.000E0 Y = 5.000E-1
END006