The tangent of x in radians, computed as sin(x) / cos(x), so it is huge but finite near odd multiples of pi/2 and gives NaN for an infinite argument. float and float64.
assert(tan(0.0) == 0);
assert(abs(tan(PI / 4) - 1) < 0.0001);tan :: (x: float64) -> float64
Tangent.
Parameters
- x: float64
- the angle in radians.
Returns
- float64
tan :: (theta: float) -> float
Tangent.
Parameters
- theta: float
- the angle in radians.
Returns
- float