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

Defining a Curve

  • September 1, 2017
  • 1 reply
  • 9920 views

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

Best answer by Werner_E

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

 

1 reply

24-Ruby IV
September 1, 2017

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

awibroe1-VisitorAuthor
1-Visitor
September 1, 2017

Any advice on how that works?

awibroe1-VisitorAuthor
1-Visitor
September 1, 2017

Hi Fred,

 

Good to hear from you. In the example above I see that here you are given the coefficients of y in terms of x (or at least that is what I think has happened). How easy is this to take and put into a function that could be reporduced in a different mathcad file?

 

Cheers,

 

Andy