MATLAB Answers

finding roots of equation

7 views (last 30 days)
Sourav Dey
Sourav Dey on 16 May 2021
Answered: KSSV on 16 May 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

Accepted Answer

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

More Answers (1)

VBBV
VBBV on 16 May 2021
%if true
syms x;
equation=0.5*(x-2)^3-40*sin(x)==0;
sol=vpasolve(equation,x,[2 4]);

Community Treasure Hunt

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

Start Hunting!