atand
Compute the principal value of the arc tangent of x
, return in degrees.
Base.Math.atand
— Functionatand(y)
atand(y,x)
Compute the inverse tangent of y
or y/x
, respectively, where the output is in degrees.
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) @ Base.MPFR mpfr.jl:887 [2] atand(y) @ special/trig.jl:1301
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)