Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português do Brasil - Japanese -
Scilab help >> Elementary Functions > Trigonometry > atand

atand

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

Calling Sequence

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

Arguments

x

real scalar, vector or matrix

phi

real scalar, vector or matrix

x, y

real scalars, vectors or matrices of the same size

phi

real scalar, vector or matrix

Description

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.

Examples

// example with the second form
x=[0,1/sqrt(3),1,sqrt(3),%inf,0]
atand(x)

See Also

  • tan — tangent
  • tand — set floating point exception mode

Authors

  • Serge Steer, INRIA

Comments


Add a comment:
Please login to comment this page.

<< atan Trigonometry atanh >>

Consortium Scilab (DIGITEO)
Scilab Enterprises

Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:09:40 CEST 2011