Difference between revisions of "ComplexRadians"

 
Line 1: Line 1:
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]
 
[[category:Functions that operate on complex numbers]]
 
[[category:Functions that operate on complex numbers]]
''New in [[Analytica 4.5]]''
 
  
Returns the phase of a [[Complex Numbers|complex number]] in radians.
+
==ComplexRadians(x)==
 +
Returns the phase of [[Complex Numbers|complex number]] «x» in radians.
  
A complex number can be written in polar form as <math>r e^{\theta j}</math>.  Given a complex number, x, <code>ComplexRadians</code> returns <math>\theta</math>, the result being expressed in radians in the range of <math>[-\pi,\pi)</math>.
+
A complex number can be written in polar form as <math>r e^{\theta j}</math>.  Given a complex number, «x», <code>ComplexRadians</code> returns <math>\theta</math>, the result being expressed in radians in the range of <math>[-\pi,\pi)</math>.
  
= Examples =
+
== Examples ==
 +
:<code>ComplexRadians(5 + 5j) &rarr; 0.7854            {This is <math>\pi/4</math>} </code>
 +
:<code>ComplexRadians(1j) &rarr; 1.571            {This is <math>\pi/2</math>} </code>
 +
:<code>ComplexRadians(-1j) &rarr; -1.571 </code>
 +
:<code>ComplexRadians(-2) &rarr; -3.142 </code>
 +
:<code>ComplexRadians(.1) &rarr; 0 </code>
  
:<code>ComplexRadians(5+5j)</code> &rarr; 0.7854            ''{This is <math>\pi/4</math>}''
+
==History==
:<code>ComplexRadians(1j)</code> &rarr; 1.571            ''{This is <math>\pi/2</math>}''
+
This function was introduced in [[Analytica 4.5]].
:<code>ComplexRadians(-1j)</code> &rarr; -1.571
 
:<code>ComplexRadians(-2)</code> &rarr; -3.142
 
:<code>ComplexRadians(.1)</code> &rarr; 0
 
 
 
= See Also =
 
  
 +
== See Also ==
 
* [[ComplexDegrees]]
 
* [[ComplexDegrees]]
 
* [[Complex Numbers]]
 
* [[Complex Numbers]]
 
* [[Abs]]  -- for the magnitude, ''r''
 
* [[Abs]]  -- for the magnitude, ''r''
* [[Degrees]], [[Radians]]
+
* [[Degrees]]
 +
* [[Radians]]

Latest revision as of 02:25, 19 January 2016


ComplexRadians(x)

Returns the phase of complex number «x» in radians.

A complex number can be written in polar form as [math]\displaystyle{ r e^{\theta j} }[/math]. Given a complex number, «x», ComplexRadians returns [math]\displaystyle{ \theta }[/math], the result being expressed in radians in the range of [math]\displaystyle{ [-\pi,\pi) }[/math].

Examples

ComplexRadians(5 + 5j) → 0.7854 {This is [math]\displaystyle{ \pi/4 }[/math]}
ComplexRadians(1j) → 1.571 {This is [math]\displaystyle{ \pi/2 }[/math]}
ComplexRadians(-1j) → -1.571
ComplexRadians(-2) → -3.142
ComplexRadians(.1) → 0

History

This function was introduced in Analytica 4.5.

See Also

Comments


You are not allowed to post comments.