Difference between revisions of "ToPolar Command"
From GeoGebra Manual
m (removed extra CAS syntax) |
(command syntax: changed [ ] into ( )) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geogebra}} | ||
− | ;ToPolar | + | ;ToPolar( <Vector> ) |
:Transforms a vector into its polar coordinates. | :Transforms a vector into its polar coordinates. | ||
− | :{{example|1=<code><nowiki>ToPolar | + | :{{example|1=<code><nowiki>ToPolar({1, sqrt(3)})</nowiki></code> yields ''(2; 60°)'' in the [[File:Menu view algebra.svg|link=|16px]] [[Algebra View]] and ''(2; <math>\frac{\pi}{3}</math>)'' in the [[File:Menu view cas.svg|link=|16px]] [[CAS View]].}} |
− | ;ToPolar | + | ;ToPolar( <Complex Number> ) |
:Transforms a complex number into its polar coordinates. | :Transforms a complex number into its polar coordinates. | ||
− | :{{example|1=<code><nowiki>ToPolar | + | :{{example|1=<code><nowiki>ToPolar(1 + sqrt(3) * ί)</nowiki></code> yields ''(2; 60°)'' in the [[File:Menu view algebra.svg|link=|16px]] [[Algebra View]] and ''(2; <math>\frac{\pi}{3}</math>)'' in the [[File:Menu view cas.svg|link=|16px]] [[CAS View]].}} |
{{note| 1=<div> | {{note| 1=<div> |
Revision as of 19:18, 30 September 2017
- ToPolar( <Vector> )
- Transforms a vector into its polar coordinates.
- Example:
ToPolar({1, sqrt(3)})
yields (2; 60°) in the Algebra View and (2; \frac{\pi}{3}) in the CAS View.
- ToPolar( <Complex Number> )
- Transforms a complex number into its polar coordinates.
- Example:
ToPolar(1 + sqrt(3) * ί)
yields (2; 60°) in the Algebra View and (2; \frac{\pi}{3}) in the CAS View.
Note:
- The complex ί is obtained by pressing ALT + i.
- See also ToComplex Command, ToExponential Command and ToPoint Command.