acscd

Compute the principal value of the arc cosecant of x, return in degrees.

Base.Math.acscdFunction
acscd(x)

Compute the inverse cosecant of x, where the output is in degrees. If x is a matrix, x needs to be a square matrix.

Julia 1.7

Matrix arguments require Julia 1.7 or later.

source

Methods

julia> methods(acscd, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 1 method for generic function "acscd" from Base.Math:
 [1] acscd(x)
     @ special/trig.jl:1287

Examples

Real Numbers

julia> acscd(Inf)
0.0

julia> acscd(-Inf)
-0.0

julia> acscd(2)
30.000000000000004

julia> acscd(sqrt(2))
44.99999999999999

julia> acscd(1.0)
90.0

julia> acscd(0)
ERROR: DomainError with Inf:
asin(x) is not defined for |x| > 1.
Stacktrace:
[...]

Complex

julia> acscd(1+0im)
90.0 - 0.0im

Tips

See Also

Extended Inputs

Tech Notes

  • Implemented in terms of acsc: acscd(x) = rad2deg(acsc(x))

Version History

Introduced in Julia v1.0 (2018)