convert/trig - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Conversion : convert/trig

convert/trig

convert exponentials and special functions into trigonometric functions

 Calling Sequence convert(expr, trig)

Parameters

 expr - Maple expression, equation, or a set or list of them

Description

 • convert/trig converts the exponentials in an expression as well as the special functions when possible into trigonometric functions, that is, into any of $\mathrm{sin},\mathrm{cos},\mathrm{tan},\mathrm{sec},\mathrm{csc},\mathrm{cot},\mathrm{sinh},\mathrm{cosh},\mathrm{tanh},\mathrm{sech},\mathrm{csch},\mathrm{coth}$.

Examples

 > $\frac{1}{2}\mathrm{exp}\left(x\right)+\frac{1}{2}\mathrm{exp}\left(-x\right)$
 $\frac{{{ⅇ}}^{{x}}}{{2}}{+}\frac{{{ⅇ}}^{{-}{x}}}{{2}}$ (1)
 > $\mathrm{convert}\left(,\mathrm{trig}\right)$
 ${\mathrm{cosh}}{}\left({x}\right)$ (2)
 > ${\mathrm{\pi }}^{\frac{1}{2}}\mathrm{MeijerG}\left(\left[\left[\right],\left[\right]\right],\left[\left[\frac{1}{2}\right],\left[0\right]\right],\frac{1}{4}{x}^{4}\right)\mathrm{MeijerG}\left(\left[\left[\right],\left[\right]\right],\left[\left[0\right],\left[\right]\right],-x\right)$
 $\sqrt{{\mathrm{\pi }}}{}{\mathrm{MeijerG}}{}\left(\left[\left[\right]{,}\left[\right]\right]{,}\left[\left[\frac{{1}}{{2}}\right]{,}\left[{0}\right]\right]{,}\frac{{{x}}^{{4}}}{{4}}\right){}{\mathrm{MeijerG}}{}\left(\left[\left[\right]{,}\left[\right]\right]{,}\left[\left[{0}\right]{,}\left[\right]\right]{,}{-}{x}\right)$ (3)
 > $\mathrm{convert}\left(,\mathrm{trig}\right)$
 $\frac{\sqrt{{4}}{}\sqrt{{{x}}^{{4}}}{}{\mathrm{sin}}{}\left({{x}}^{{2}}\right){}\left({\mathrm{cosh}}{}\left({x}\right){+}{\mathrm{sinh}}{}\left({x}\right)\right)}{{2}{}{{x}}^{{2}}}$ (4)