Difference between revisions of "ToPolar Command"

From GeoGebra Manual
Jump to: navigation, search
m
m (removed extra CAS syntax)
Line 2: Line 2:
 
;ToPolar[ <Vector> ]
 
;ToPolar[ <Vector> ]
 
:Transforms a vector into its polar coordinates.
 
:Transforms a vector into its polar coordinates.
:{{example|1=<code><nowiki>ToPolar[{1, sqrt(3)}]</nowiki></code> yields ''(2; 60°)'', the polar coordinates of ''(1, <math>\sqrt{3}</math>)''.}}
+
:{{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[ <Complex Number> ]
 
;ToPolar[ <Complex Number> ]
 
:Transforms a complex number into its polar coordinates.
 
:Transforms a complex number into its polar coordinates.
:{{example|1=<code><nowiki>ToPolar[1 + sqrt(3) * ί]</nowiki></code> yields ''(2; 60°)'', the polar coordinates of ''1 + <math>\sqrt{3}</math> * ί''.}}
+
:{{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]].}}
==CAS Syntax==
+
 
;ToPolar[ <Vector> ]
 
:Transforms a vector into its polar coordinates.
 
:{{example|1=<code><nowiki>ToPolar[(1, sqrt(3))]</nowiki></code> yields ''(2; <math>\frac{\pi}{3}</math>)'', the polar coordinates of ''(1, <math>\sqrt{3}</math>)''.}}
 
;ToPolar[ <Complex Number> ]
 
:Transforms a complex number into its polar coordinates.
 
:{{example|1=<code><nowiki>ToPolar[1 + sqrt(3) * ί]</nowiki></code> yields ''(2; <math>\frac{\pi}{3}</math>)'', the polar coordinates of ''1 + <math>\sqrt{3}</math> * ί''.}}
 
 
{{note| 1=<div>
 
{{note| 1=<div>
 
*  The complex ί is obtained by pressing {{KeyCode|ALT + i}}.  
 
*  The complex ί is obtained by pressing {{KeyCode|ALT + i}}.  
 
* See also [[ToComplex Command]], [[ToExponential Command]] and [[ToPoint Command]].
 
* See also [[ToComplex Command]], [[ToExponential Command]] and [[ToPoint Command]].
 
</div>}}
 
</div>}}

Revision as of 13:03, 3 September 2015


ToPolar[ <Vector> ]
Transforms a vector into its polar coordinates.
Example: ToPolar[{1, sqrt(3)}] yields (2; 60°) in the Menu view algebra.svg Algebra View and (2; \frac{\pi}{3}) in the Menu view cas.svg CAS View.
ToPolar[ <Complex Number> ]
Transforms a complex number into its polar coordinates.
Example: ToPolar[1 + sqrt(3) * ί] yields (2; 60°) in the Menu view algebra.svg Algebra View and (2; \frac{\pi}{3}) in the Menu view cas.svg CAS View.


Note:
© 2024 International GeoGebra Institute