Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Elementary Functions > Trigonometry > atand


2-quadrant and 4-quadrant element-wise inverse tangent, result in degree

Calling Sequence

phi = atand(x)
phi = atand(y, x)



a real scalar, vector or matrix.


a real scalar, vector or matrix.

x, y

real scalars, vectors or matrices of the same size.


a real scalar, vector or matrix.


The first form computes the 2-quadrant inverse tangent, which is the inverse of tand(phi). The phi elements are in the interval [-90, 90].

The second form computes the 4-quadrant arctangent (atan2 in Fortran), this is, it returns the argument (angle) of the complex number x+i*y. The range of atand(y,x) is [-180, 180i].

Both forms yield identical values if x>0.



// example with the second form

See Also

  • atan — 2-quadrant and 4-quadrant inverse tangent
  • tan — tangent
  • tand — tangent, argument in degree.
Report an issue
<< atan Trigonometry atanh >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:46:48 CEST 2014