Scilab-Branch-6.1-GIT
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
atan (Matlab function)
Two-quadrant inverse tangent
Particular cases
When the input x
is imaginary and abs(x)>=1
,
the real part of the result differs from Scilab vs Matlab or Octave:
Scilab | Octave | Matlab | |
---|---|---|---|
atan(-2i) | -π/2 - B.i | -π/2 - B.i | π/2 - B.i |
atan(-i) | Nan - Inf | 0 - Inf | 0 - Inf |
atan(i) | Nan + Inf | 0 + Inf | 0 + Inf |
atan(2i) | π/2 + B.i | π/2 + B.i | -π/2 + B.i |
Report an issue | ||
<< asin (Matlab function) | A | atan2 (Matlab function) >> |