Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want the roots of a function using Mathcad

Status
Not open for further replies.

mechanicaljw

Structural
Jun 14, 2012
80
Hello Everyone,

Is there a way in mathcad to obtain the roots of a function f(omega)=0? I am doing it at the moment by first plotting the function and then searching for the places where it is equal to zero. But how do i solve the function directly without first plotting it?

Thanks!
Jimmy
 
Replies continue below

Recommended for you

Might be useful if you post what your solution was for future seekers of knowledge. There may also be other approaches that might be simpler.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
This is what I did using the polyroots function.

If I have f(x)=x^n+k1x^(n-1)+.....+k0 and I want the solution for f(x)=0

I first find the coefficients of f(x) using

G=f(x)coeffs,x------->

The coeffs --------> is obtained by using coeffs under Symbolic and the x is added by using the "comma" key on the keyboard. With the coeffients defined:

r:=polyroots(G)

r=
would give you the zeros of the function f(x)

Jimmy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor