cscd
Compute the cosecant of x expressed in degrees.
Base.Math.cscd — Function
cscd(x::T) where {T <: Number} -> float(T)Compute the cosecant of x, where x is in degrees.
Throw a DomainError if isinf(x), return a T(NaN) if isnan(x).
Methods
julia> methods(cscd, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 1 method for generic function "cscd" from Base.Math: [1] cscd(z::Number) @ special/trig.jl:1167
Examples
Real Numbers
julia> cscd(0)
Inf
julia> cscd(-0.0)
-Inf
julia> cscd(45)
1.414213562373095
julia> cscd(90)
1.0
julia> cscd(180)
InfComplex
julia> cscd(90+0im)
1.0 - 0.0imTips
See Also
Extended Inputs
Tech Notes
- Implemented in terms of
sind:cscd(x) = inv(sind(x))
Version History
Introduced in Julia v1.0 (2018)