How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?

17 views (last 30 days)
How to determine roots of a trigonometric equation like 2x-cosx-2=0 ?

Accepted Answer

Torsten
Torsten on 27 Jun 2016
fun=@(x)2*x-cos(x)-2;
x0=[0 2];
sol=fzero(fun,x0)
Best wishes
Torsten.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!