Difference between revisions of "Documentation/How Tos/Calc: IMAGINARY function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
(→Syntax:: italics) |
||
Line 9: | Line 9: | ||
=== Syntax: === | === Syntax: === | ||
<tt>'''IMAGINARY(complexnumber)'''</tt> | <tt>'''IMAGINARY(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>'''<i>a</i>+<i>bi</i>'''</tt> or <tt>'''<i>a</i>+<i>bj</i>'''</tt>, where <tt>'''<i>a</i>'''</tt> is the real part and <tt>'''<i>b</i>'''</tt> the imaginary part. |
:<tt>'''IMAGINARY'''</tt> returns the imaginary part as a number. | :<tt>'''IMAGINARY'''</tt> returns the imaginary part as a number. |
Revision as of 20:57, 22 February 2008
IMAGINARY
Returns the real part of a complex number.
This function is only available if the Analysis AddIn is installed.
Syntax:
IMAGINARY(complexnumber)
- complexnumber is text representing a complex number, for example as a+bi or a+bj, where a is the real part and b the imaginary part.
- IMAGINARY returns the imaginary part as a number.
Example:
IMAGINARY("4+3i")
- returns 3.
See also:
Issues:
- This function currently appears in the AddIn category of the Function Wizard.