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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Syntax:)
(Syntax:)
Line 11: Line 11:
 
: <tt>'''complexnumber'''</tt> is text representing a complex number, for example as <tt>'''a+bi'''</tt> or <tt>'''a+bj'''</tt>.
 
: <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. For a complex number <tt>'''a+bi'''</tt> = <tt>'''r(cos&phi; + isin&phi;)'''</tt> the argument is &phi;.
  
 
=== Example: ===
 
=== Example: ===

Revision as of 18:57, 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. For a complex number a+bi = r(cosφ + isinφ) the argument is φ.

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