Finding Solution of an equation with hyperbolic functions within an interval

조회 수: 7 (최근 30일)
2*cos(403*x)*sinh(403*x) + 2*cosh(403*x)*sin(403*x) = 0 % this is the expression
I want to find the solutions to this expression in the range of [0, 0.2]. I tried fsolve, fzero, solve, and every other function that I could find. If I cant get all the correct answers in a single try, how can i find the first solution other than x = 0 and then use any other method like Newton-Raphson or some other methods?
Thank You

채택된 답변

Alan Stevens
Alan Stevens 2020년 11월 17일
First draw a graph of the function to see roughly where the roots are, then use fzero:
f = @(x) 2*cos(403*x).*sinh(403*x) + 2*cosh(403*x).*sin(403*x);
xp1 = fzero(f,0.005);
xp2 = fzero(f,0.015);
x = 0:0.0001:0.02;
y = f(x);
plot(x,y,xp1,0,'o',xp2,0,'o'),grid
axis([0 0.02 -150 100])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by