tand
Compute the tangent of x expressed in degrees.
Base.Math.tand — Function
tand(x::T) where T -> float(T)Compute tangent 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(tand, (Any,), [Base, Base.Math, Base.MathConstants, Base.MPFR])# 3 methods for generic function "tand" from Base.Math: [1] tand(x::BigFloat) @ mpfr.jl:966 [2] tand(x::Real) @ special/trig.jl:1266 [3] tand(x) @ special/trig.jl:1299
Examples
Real Numbers
julia> tand(0)
0.0
julia> tand(-0.0)
-0.0
julia> tand(45)
1.0
julia> tand(90)
InfComplex
julia> tand(0+0im)
0.0 + 0.0imTips
See Also
Extended Inputs
Tech Notes
- Implemented in terms of
tan:tand(deg) = tan(deg2rad(deg))
Version History
Introduced in Julia v1.0 (2018)