Difference between revisions of "Documentation/How Tos/Calc: IMARGUMENT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
(Syntax:)
Line 9: Line 9:
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''IMARGUMENT(complexnumber)'''</tt>
 
<tt>'''IMARGUMENT(complexnumber)'''</tt>
: <tt>'''complexnumber'''</tt> is text representing a complex number, for example as <tt>'''a+bi'''</tt> or <tt>'''a+bj'''</tt>, where <tt>'''a'''</tt> is the real part and <tt>'''b'''</tt> the imaginary part.
+
: <tt>'''complexnumber'''</tt> is text representing a complex number, for example as <tt>'''a+bi'''</tt> or <tt>'''a+bj'''</tt>.
  
 
: <tt>'''IMARGUMENT'''</tt> returns the argument of <tt>'''complexnumber'''</tt> in radians - that is, in a polar representation, the angle relative to the horizontal axis. If <tt>'''a+bi'''</tt> = <tt>'''r(cos&phi; + isin&phi;)'''</tt> then <tt>'''IMARGUMENT("a+bi")'''</tt> returns &phi;.
 
: <tt>'''IMARGUMENT'''</tt> returns the argument of <tt>'''complexnumber'''</tt> in radians - that is, in a polar representation, the angle relative to the horizontal axis. If <tt>'''a+bi'''</tt> = <tt>'''r(cos&phi; + isin&phi;)'''</tt> then <tt>'''IMARGUMENT("a+bi")'''</tt> returns &phi;.

Revision as of 18:15, 22 February 2008


IMARGUMENT

Returns the argument of a complex number.

This function is only available if the Analysis AddIn is installed.

Syntax:

IMARGUMENT(complexnumber)

complexnumber is text representing a complex number, for example as a+bi or a+bj.
IMARGUMENT returns the argument of complexnumber in radians - that is, in a polar representation, the angle relative to the horizontal axis. If a+bi = r(cosφ + isinφ) then IMARGUMENT("a+bi") returns φ.

Example:

IMARGUMENT("3+3i")

returns 0.785398163397 - that is 2π/8 radians.

See also:

IMABS

Complex Number functions

Issues:

  • This function currently appears in the AddIn category of the Function Wizard.
Personal tools