How to solve a nonlinear non-transcendental equation numerically- I have a non-linear non-transcendental equation, I have tried vpasolve function but it does not provide correct roots, do you know how can I find the roots of such an equation? Thanks

3 views (last 30 days)
(c1-c2*landa^4)*((sinh(landa*L))^2 - (sin(landa*L))^2) - (c1-c2*landa^4)*(cosh(landa*L)+cos(landa*L))^2 + c3*(cosh(landa*L)-cos(landa*L))*(sinh(landa*L)+sin(landa*L)) - (cosh(landa*L)-cos(landa*L))*(sinh(landa*L)+sin(landa*L)) = 0
% ci (c1,c2 c3), are all constant rational numbers, eqation should be solved for 'Landa'
  2 Comments
Alireza Babaei
Alireza Babaei on 10 Mar 2020
I mean using vpasolve does not give correct answers ...
so I wasn wondering about the essence of a more generalized apporach for such nonlinear non-trnascendental equations

Sign in to comment.

Accepted Answer

darova
darova on 10 Mar 2020
I tried this
clc,clear
c1 = 1;
c2 = 2;
c3 = 3;
L = 5;
syms landa
f = (c1-c2*landa^4)*((sinh(landa*L))^2 - (sin(landa*L))^2) - (c1-c2*landa^4)*(cosh(landa*L)+cos(landa*L))^2 + c3*(cosh(landa*L)-cos(landa*L))*(sinh(landa*L)+sin(landa*L)) - (cosh(landa*L)-cos(landa*L))*(sinh(landa*L)+sin(landa*L));
F = matlabFunction(f);
x = linspace(-1,1)/3;
y = F(x);
[~,ix] = min(abs(y));
plot(x,y,x(ix),y(ix),'*r')
grid on
result

More Answers (0)

Categories

Find more on Systems of Nonlinear Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!