atan

Returns the inverse tangent (in radians) of a.

Syntax

R = atan(a)

Inputs

a
Any valid scalar | vector | matrix
Type: double | integer
Dimension: scalar | vector | matrix

Outputs

R in radians
scalar | vector | matrix

Examples

Simple scalar input:
atan(-2)
R = -1.10715
Simple matrix input:
atan([2,3,4])
R = [ 1.10715 1.24905 1.32582 ]
Complex matrix input:
atan([i+1,-2-i, 6i, 1])
R  = [ 1.01722 + 0.402359i, -1.1781-0.173287i, 1.5708 + 0.168236i, 0.785398]