Skip to main content
1-Visitor
September 1, 2017
Solved

Defining a Curve

Hello to all,

 

I am interested to know if it is possible to mathmatically define a curve as a function. i.e. if I have an xy plot which I have created a curve for i.e. a polyfit or similar. Is it then possible to get MathCAD to define that plot as a function of x? i.e. if I have a polyfit line (which I understand to essentialy be an extrapolation of the xy plots themselves) can this polyfit line be defined as a function i.e. y(x)?

 

Thanks,

 

Andy

Werner_E
Werner_EAnswer
25-Diamond I
September 1, 2017

Here is a sheet in Prime 3.0 format.

Hope it helps.

To use the function without the data availabe you would copy simply the "coeffs" vector (set Prime to show more decimals for better precision) and assign it a variable "coeffs" which you then can use for the function definition as shown.

Bild1.png

 

24 replies

24-Ruby IV
September 1, 2017

The regress function returns coefficients of the polinomal for the approximation!

Translate
awibroe1-VisitorAuthor
1-Visitor
September 1, 2017

Any advice on how that works?

Translate
23-Emerald V
September 1, 2017

Here you go:

regress.png

Next, see what happens if you change the value of order..

 

Success!
Luc

Translate