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