atand
Compute the principal value of the arc tangent of x, return in degrees.
Base.Math.atand — Function
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.
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.0Complex
julia> atand(0+0im)
0.0 - 0.0imTips
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)