atand

Compute the principal value of the arc tangent of x, return in degrees.

Base.Math.atandFunction
atand(y::T) where T -> float(T)
atand(y::T, x::S) where {T,S} -> promote_type(T,S)
atand(y::AbstractMatrix{T}) where T -> AbstractMatrix{Complex{float(T)}}

Compute the inverse tangent of y or y/x, respectively, where the output is in degrees.

Return a NaN if isnan(y) or isnan(x). The returned NaN is either a T in the single argument version, or a promote_type(T,S) in the two argument version.

Julia 1.7

The one-argument method supports square matrix arguments as of Julia 1.7.

source

Methods

julia> methods(atand, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 2 methods for generic function "atand" from Base.Math:
 [1] atand(x::BigFloat)
     @ mpfr.jl:973
 [2] atand(y)
     @ special/trig.jl:1336

Examples

Real Numbers

julia> atand(0)
0.0

julia> atand(-0.0)
-0.0

julia> atand(1.0)
45.0

julia> atand(Inf)
90.0

julia> atand(-Inf)
-90.0

Complex

julia> atand(0+0im)
0.0 - 0.0im

Tips

See Also

Extended Inputs

Tech Notes

  • Implemented in terms of atan: atand(y) = rad2deg(atan(y)), atand(y, x) = rad2deg(atan(y, x)),

Version History

Introduced in Julia v1.0 (2018)