acosd
Compute the principal value of the arc cosine of x, return in degrees.
Base.Math.acosd — Function
acosd(x)Compute the inverse cosine of x, where the output is in degrees. If x is a matrix, x needs to be a square matrix.
Methods
julia> methods(acosd, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 2 methods for generic function "acosd" from Base.Math: [1] acosd(x::BigFloat) @ mpfr.jl:973 [2] acosd(x) @ special/trig.jl:1318
Examples
Real Numbers
julia> acosd(1.0)
0.0
julia> acosd(0.0)
90.0
julia> acosd(0.5)
60.00000000000001
julia> acosd(-1.0)
180.0Complex
julia> acosd(0+0im)
90.0 - 0.0imTips
See Also
Extended Inputs
Tech Notes
- Implemented in terms of
acos:acosd(x) = rad2deg(acos(x))
Version History
Introduced in Julia v1.0 (2018)