tand
Compute the tangent of x
expressed in degrees.
Base.Math.tand
— Functiontand(x)
Compute tangent of x
, where x
is in degrees. If x
is a matrix, x
needs to be a square matrix.
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) @ Base.MPFR mpfr.jl:880 [2] tand(x::Real) @ special/trig.jl:1240 [3] tand(x) @ special/trig.jl:1268
Examples
Real Numbers
julia> tand(0)
0.0
julia> tand(-0.0)
-0.0
julia> tand(45)
1.0
julia> tand(90)
Inf
Complex
julia> tand(0+0im)
0.0 + 0.0im
Tips
See Also
Extended Inputs
Tech Notes
- Implemented in terms of
tan
:tand(deg) = tan(deg2rad(deg))
Version History
Introduced in Julia v1.0 (2018)