Difference between revisions of "Documentation/How Tos/Calc: IMARGUMENT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(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> | + | : <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φ + isinφ)'''</tt> then <tt>'''IMARGUMENT("a+bi")'''</tt> returns φ. | : <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φ + isinφ)'''</tt> then <tt>'''IMARGUMENT("a+bi")'''</tt> returns φ. |
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:
Issues:
- This function currently appears in the AddIn category of the Function Wizard.