Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jun 14, 2012
Messages
80
Location
DE
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
 
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

Back
Top