cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

POLYNOMIAL Approximation to a Function

Anousheh
6-Contributor

POLYNOMIAL Approximation to a Function

Hello everyone,

Please look at the attached MathCad worksheet.

I would like to generate a suitable (cubic) polynomial to Ki"zero"(alpha) function and compare it with the actual one.

I guess, MathCad can do this automatically.

Thank you so much for the time and help.

Regards,

Anousheh

1 ACCEPTED SOLUTION

Accepted Solutions

There were some errors in appending the images. I only see one (the first one).

In regards to the coefficients, use POLYFITC:

Untitled.png

View solution in original post

8 REPLIES 8

Hmmmm, well, you can use the POLYFIT function:

01.png

If you change the x-values over which you're fitting, you get different looking curves:

02.png

Anousheh
6-Contributor
(To:RogerYeh)

Hello Roger,

Thank you so much.

This is the range I am interested in:

As it can be seen, it is not a good fit in this range.

Polynomial.jpg

This is what I need from MathCad: I have generated this manually in EXCEL.

Polynomial Function.jpg

One other thing: I need to have the actual POLYNOMIAL function (like one highlighted above) for publication purposes.

Regards,

Anousheh

There were some errors in appending the images. I only see one (the first one).

In regards to the coefficients, use POLYFITC:

Untitled.png

Anousheh
6-Contributor
(To:RogerYeh)

Hello Roger,

Thanks again. I really appreciate this.

I have sorted the problem. Please see bellow:

The polynomial fits perfectly. Thanks again.

Polynomial+Function-Final.jpg

This solves my problem. Thanks and regards,

Anousheh

You may try simple regress an go for the coefficients

regress.png

Anousheh
6-Contributor
(To:Werner_E)

Hello Werner,

Yet, another beautiful worksheet. Very nice and helpful. I shall use this as a REFERENCE for future use.

One question: how do we expand this for multi-variable functions?

Thank you and regards,

Anousheh

One question: how do we expand this for multi-variable functions?

Thank you and regards,

Anousheh

Getting the coefficients is a bit more work for multi variable functions and uttilizes one or two small programs. Fortunately thats covered very well in the help. Look for regress and follow the link on the bottom to the appropriate quicksheet. My wisdom stems from there 😉

Anousheh
6-Contributor
(To:Werner_E)

Hello Werner,

Thank you for your input.

Appreciate your time and help.

All the best,

Anousheh

Top Tags