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

2 visualizzazioni (ultimi 30 giorni)
(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 Commenti
Alireza Babaei
Alireza Babaei il 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

Accedi per commentare.

Risposta accettata

darova
darova il 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

Più risposte (0)

Categorie

Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by