finding roots of equation

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

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

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 16 May 2021

Answered:

on 16 May 2021

Community Treasure Hunt

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

Start Hunting!