cscd

Compute the cosecant of x expressed in degrees.

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:1145

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)
Inf

Complex

julia> cscd(90+0im)
1.0 - 0.0im

Tips

See Also

Extended Inputs

Tech Notes

  • Implemented in terms of sind: cscd(x) = inv(sind(x))

Version History

Introduced in Julia v1.0 (2018)