×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

simplifly polynomial expression

simplifly polynomial expression

simplifly polynomial expression

(OP)
Hi

i would like to know if there is any function that can be used to reduce the size of polynomial expression (i have a huge one, with several terms and i must made an approximation because my computer can not finish the calculus once i use it  in a function)

gabi

RE: simplifly polynomial expression

Why can you just curve fit it to a lower order polynomial?

TTFN



RE: simplifly polynomial expression

(OP)
how can i make what you say? In fact i dont really understand what you want to say....
gabi

RE: simplifly polynomial expression

Use your function to calculate a set of points {(xi,yi)} in the range of interest.

Assume a form of the solution with unknown parameters.  For example Yhat(X)=A + B*X + C*X^2 with unknown parameters A,B,C.  Then to find the values of unknown parameters that minimize the sum of squares of the residuals.  Residuals are Ri=Yhati = Yi

In Matlab you can make Matlab do all the programming - use the polyfit function to find a polynomial fit.

If you don't want a polynomial fit, you can program a least squares fit for any functional form using simple matrix algebra.  (It may be tough to figure out yourself, search around and you should be able to locate the algorithm or if you really want I can dscribe it).

Also excel has a variety of ways to fit functions which might even be easier. Drop on over to the spreadsheet forum.

=====================================
Eng-tips forums: The best place on the web for engineering discussions.

RE: simplifly polynomial expression

Correction:
Residuals are Ri=Yhati -Yi

=====================================
Eng-tips forums: The best place on the web for engineering discussions.

RE: simplifly polynomial expression

If you are not satisfied with a polynomial fit (Matlab polyfit), then you can program your own least square estimate using the techniques shown in chapter 15 here:

http://www.library.cornell.edu/nr/cbookfpdf.html

=====================================
Eng-tips forums: The best place on the web for engineering discussions.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources