How do I find ALL of the positive roots of exp(-0.2*x)*cos(2*x)-0.15*x^2+1?
조회 수: 1 (최근 30일)
이전 댓글 표시
I enter this into Matlab but I only receive back one of its positive roots and I know it has at least three.
syms x,
y=exp(-0.2*x)*cos(2*x)-0.15*x^2+1;
sol=solve(y)
댓글 수: 0
채택된 답변
Walter Roberson
2014년 4월 11일
It has exactly three.
The easiest way is to plot the function, observe the approximate crossings, and run a numeric solver that is constrained to each range in turn.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!