sind
Compute the sine of x expressed in degrees.
Base.Math.sind — Function
sind(x::T) where T -> float(T)Compute sine of x, where x is in degrees. If x is a matrix, x needs to be a square matrix.
Throw a DomainError if isinf(x), return a T(NaN) if isnan(x).
Methods
julia> methods(sind, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 3 methods for generic function "sind" from Base.Math: [1] sind(x::BigFloat) @ mpfr.jl:966 [2] sind(x::Real) @ special/trig.jl:1209 [3] sind(x) @ special/trig.jl:1299
Examples
Real Numbers
julia> sind(180)
0.0
julia> sind(90)
1.0Tips
See Also
Extended Inputs
Tech Notes
- Implemented in terms of
sin:sind(deg) = sin(deg2rad(deg))
Version History
Introduced in Julia v1.0 (2018)