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{ⅇ}^{x}}{2}+\frac{1{ⅇ}^{-x}}{2}$
 $\frac{{1}}{{2}}{}{{ⅇ}}^{{x}}{+}\frac{{1}}{{2}}{}{{ⅇ}}^{{-}{x}}$ (1)
 > $\mathrm{convert}\left(,\mathrm{trig}\right)$
 ${\mathrm{cosh}}{}\left({x}\right)$ (2)
 > ${\mathrm{π}}^{\frac{1}{2}}\mathrm{MeijerG}\left(\left[\left[\right],\left[\right]\right],\left[\left[\frac{1}{2}\right],\left[0\right]\right],\frac{1{x}^{4}}{4}\right)\mathrm{MeijerG}\left(\left[\left[\right],\left[\right]\right],\left[\left[0\right],\left[\right]\right],-x\right)$
 $\sqrt{{\mathrm{π}}}{}{\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)$ (3)
 > $\mathrm{convert}\left(,\mathrm{trig}\right)$
 $\frac{{1}}{{2}}{}\frac{\sqrt{{4}}{}\sqrt{{{x}}^{{4}}}{}{\mathrm{sin}}{}\left({{x}}^{{2}}\right){}\left({\mathrm{cosh}}{}\left({x}\right){+}{\mathrm{sinh}}{}\left({x}\right)\right)}{{{x}}^{{2}}}$ (4)