how to find roots of equation having tan(x) or exp(x)

18 Ansichten (letzte 30 Tage)
moonman
moonman am 3 Okt. 2011
how to find roots of equation having tan(x) or exp(x)
I know how to calculate roots of polynomial having numerical values but i am stuck with it

Akzeptierte Antwort

Wayne King
Wayne King am 3 Okt. 2011
Is it a polynomial, or an equation involving tan(x) and exp(x)?
Have you looked at fzero()?
For example, if you have the equation
y = tan(x) and you want find a root near 3
fzero(@tan,3)
Gives you the root at pi.

Weitere Antworten (3)

Andrei Bobrov
Andrei Bobrov am 3 Okt. 2011
fzero(@(x)exp(x)+x-10,0)
fzero(@(x)tan(x)-x-.01,0)
fzero(@(x)tan(x)-x-.01,pi)

moonman
moonman am 3 Okt. 2011
These are the equations
*exp(x)+x-10=0
and tan(x)-x-.01=0*
  1 Kommentar
Wayne King
Wayne King am 3 Okt. 2011
then fzero will work as I suggested.
fzero(@(x) exp(x)+x-10,0)
says "Find the zeros of exp(x)+x-10 near 0

Melden Sie sich an, um zu kommentieren.


moonman
moonman am 3 Okt. 2011
Thanks king and andrei
This equation will calculate roots for tan in radians
what if i have taken x in degrees
how will i calculate roots

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by