Clear Filters
Clear Filters

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

5 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)

Categories

Find more on Particle & Nuclear Physics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!