how to find roots of equation having tan(x) or exp(x)
조회 수: 4 (최근 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에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!