finding roots of equation

17 vues (au cours des 30 derniers jours)
Sourav Dey
Sourav Dey le 16 Mai 2021
Réponse apportée : KSSV le 16 Mai 2021
how to find roots of equation
0.5*(x-2)^3-40*Sin(x)=0
in interval [2,4] . i have done code but its not giving correct output....
syms x;
equation=0.5*(x-2)^3-40*sin(x)==0;
sol=solve(equation,x);
please help

Réponse acceptée

KSSV
KSSV le 16 Mai 2021
syms x
eqn = 0.5*(x-2).^3-40*sin(x) == 0 ;
s = vpasolve(eqn,x)
s = 

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by