atan

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 10:14, 21 April 2011 by 193.171.195.48 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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
tan, asin, acos, complex arithmetic (cr2p, cr2phi)

<function list>

Navigation menu

Personal tools