next up previous contents
Next: Implementation Up: Number of roots of Previous: Number of roots of   Contents

Mathematical background

We use the half angle tangent substitution. If $\theta$ is the unknown we define $T$ as:

\begin{displaymath}
T=\tan(\frac{\theta}{2})
\end{displaymath}

Then we have:

\begin{displaymath}
\sin(\theta)=\frac{2T}{1+T^2}~~~~~~~\cos(\theta)=\frac{1-T^2}{1+T^2}
\end{displaymath}

Note that the change of variable is not valid if $\theta =\pm \pi$. In that case it will be preferable to define $\alpha = \theta+\pi$ and to transform the initial into an equation in $\alpha$. Then the change of variable may be applied.

Using the above relation any trigonometric equation can be transformed into a polynomial equation which is analyzed using the tools of chapter 5.

It remains to define an interval for angles that we will denote an angle interval. The element of an angle interval is usually defined between 0 and $2\pi$ (although in most of the following procedures any value can be used when not specified: internally the element of the angle interval are converted into value within this range). A difference between numbers interval (INTERVAL) and angle interval is that the lower bound of an angle interval may be larger than the upper bound. Indeed the order in an angle interval is important: for example the angle intervals [0,$\pi/4$] and [$\pi/4$,0] are not the same.


next up previous contents
Next: Implementation Up: Number of roots of Previous: Number of roots of   Contents
Jean-Pierre Merlet 2012-12-20