 convert/polar - Maple Programming Help

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

convert/polar

convert to polar form

 Calling Sequence convert( expr, polar )

Parameters

 expr - (complex) expression

Description

 • convert/polar converts an expression to its representation in polar coordinates.
 • The expression is represented as polar(r, theta) where r is the modulus and theta is the argument of the complex value of the expression.
 • This function can also be invoked directly as polar(expr).  See polar.

Examples

 > $\mathrm{convert}\left(3+4I,\mathrm{polar}\right)$
 ${\mathrm{polar}}{}\left({5}{,}{\mathrm{arctan}}{}\left(\frac{{4}}{{3}}\right)\right)$ (1)
 > $\mathrm{convert}\left(3I,\mathrm{polar}\right)$
 ${\mathrm{polar}}{}\left({3}{,}\frac{{\mathrm{\pi }}}{{2}}\right)$ (2)
 > $\mathrm{convert}\left(a+bI,\mathrm{polar}\right)$
 ${\mathrm{polar}}{}\left(\left|{a}{+}{I}{}{b}\right|{,}{\mathrm{arg}}{}\left({a}{+}{I}{}{b}\right)\right)$ (3)

if  a  and  b  are intended to be real, map evalc onto this expression:

 > $\mathrm{map}\left(\mathrm{evalc},\right)$
 ${\mathrm{polar}}{}\left(\sqrt{{{a}}^{{2}}{+}{{b}}^{{2}}}{,}{\mathrm{arctan}}{}\left({b}{,}{a}\right)\right)$ (4)