Programmer Guide/Command Reference/EVAL/atan: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
:;<var>x</var>: a scalar, vector or matrix
:;<var>x</var>: a scalar, vector or matrix
:;<var>y</var>: must have the same type as ''x''
:;<var>y</var>: must have the same type as ''x''
;Result: The inverse tangent of ''y / x''. This function can be used to compute the phase
;Result: The inverse tangent of ''y / x''. E.g. this function can be used to compute the phase of a complex number: <code>''phi'' := atan(''im'', ''re'')</code>
----
----
;See also: [[Programmer_Guide/Command_Reference/EVAL/asin|asin]], [[Programmer_Guide/Command_Reference/EVAL/cos|cos]], [[Programmer_Guide/Command_Reference/EVAL/tan|tan]], [[Programmer_Guide/Command_Reference/EVAL/cr2p|cr2p]], [[Programmer_Guide/Command_Reference/EVAL/cr2phi|cr2phi]]
;See also: [[Programmer_Guide/Command_Reference/EVAL/asin|asin]], [[Programmer_Guide/Command_Reference/EVAL/cos|cos]], [[Programmer_Guide/Command_Reference/EVAL/tan|tan]], [[Programmer_Guide/Command_Reference/EVAL/cr2p|cr2p]], [[Programmer_Guide/Command_Reference/EVAL/cr2phi|cr2phi]]


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]

Revision as of 12:31, 4 April 2011

Compute the inverse tangent of the argument. The function is applied element-wise and the result has always the same type as the argument x. The values of the result are in the range -pi .. pi.


Usage 1
atan(x)
x
a scalar, vector or matrix
Result
The inverse tangent of x.

Usage 2
atan(y, x)
x
a scalar, vector or matrix
y
must have the same type as x
Result
The inverse tangent of y / x. E.g. this function can be used to compute the phase of a complex number: phi := atan(im, re)

See also
asin, cos, tan, cr2p, cr2phi

<function list>

Navigation menu

Personal tools