how to find roots of equation having tan(x) or exp(x)
14 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Wayne King
2011 年 10 月 3 日
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.
0 件のコメント
その他の回答 (3 件)
Andrei Bobrov
2011 年 10 月 3 日
fzero(@(x)exp(x)+x-10,0)
fzero(@(x)tan(x)-x-.01,0)
fzero(@(x)tan(x)-x-.01,pi)
0 件のコメント
moonman
2011 年 10 月 3 日
1 件のコメント
Wayne King
2011 年 10 月 3 日
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
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!