Difference between revisions of "Documentation/How Tos/Calc: IMABS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(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> | + | : <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 √(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. | + | |
− | + | ||
− | + | ||
=== 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:
Issues:
- This function currently appears in the AddIn category of the Function Wizard.