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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
(Syntax:)
Line 9: Line 9:
 
=== Syntax: ===
 
=== Syntax: ===
 
<tt>'''IMABS(complexnumber)'''</tt>
 
<tt>'''IMABS(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>'''IMABS'''</tt> returns the absolute value or modulus of <tt>'''complexnumber'''</tt> - that is, in a polar representation, the distance from the origin. If <tt>'''complexnumber'''</tt> is <tt>'''a+bi'''</tt>, then the absolute value is &radic;(a<sup>2</sup> + b<sup>2</sup>).
: <tt>'''IMABS'''</tt> returns the absolute value or modulus of <tt>'''complexnumber'''</tt> - that is, in a polar representation, the distance from the origin.
+
 
+
: If <tt>'''complexnumber'''</tt> is <tt>'''a+bi'''</tt>, then the absolute value is &radic;(a<sup>2</sup> + b<sup>2</sup>).
+
  
 
=== Example: ===
 
=== Example: ===

Revision as of 18:14, 22 February 2008


IMABS

Returns the absolute value of a complex number.

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

Syntax:

IMABS(complexnumber)

complexnumber is text representing a complex number, for example as a+bi or a+bj.
IMABS returns the absolute value or modulus of complexnumber - that is, in a polar representation, the distance from the origin. If complexnumber is a+bi, then the absolute value is √(a2 + b2).

Example:

IMABS("4+3i")

returns 5.

See also:

IMARGUMENT

Complex Number functions

Issues:

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