Solving trigonometric equations numerically



Hi Dan,

On 31/03/2008, Dan Soendergaard <dan1990 at gmail.com> wrote:
>
> Hi again,
>
> It appears that Maxima is unable to solve equations of the form,
>
> 2 * sin(x) = 0.8, where x belongs to [0; 2*pi].
>
>
It can if you give it a helping hand, plotting it first to find some
bracketing points

(%i24) plot2d(2*sin(x)-0.8, [x, 0, 2*%pi]);

(%i25) find_root(2*sin(x)-0.8, x, 0, 1.5);
(%o25) .4115168460674881

(%i26) find_root(2*sin(x)-0.8, x, 1.5, 3);
(%o26) 2.730075807522305

Cheers,

Richard