next up previous contents
Next: Implementation Up: Solving trigonometric equation Previous: Solving trigonometric equation   Contents

Mathematical background

The purpose of this section is to present an algorithm which enable to determine the roots of an equation $F$ in the unknown $x$ of the form:
\begin{displaymath}
F= \sum a_k\sin^m(x)\cos^n(x)
\end{displaymath} (2.8)

with $m$ in $[0,M]$ and $n$ in $[0,N]$, $m, n$ being integers. 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 solved using the tools of section 2.11.

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: Solving trigonometric equation Previous: Solving trigonometric equation   Contents
Jean-Pierre Merlet 2012-12-20