Required Static Methodswift-numerics 1.0.3RealModule

tan(_:)

The tangent of x.

ElementaryFunctions.swift:183
static func tan(_ x: Self) -> Self

For real types, x may be interpreted as an angle measured in radians.

See also:

  • cos()

  • sin()

  • atan()

  • atan2(y:x:) (for types conforming to RealFunctions)

          sin(x)
tan(x) = --------
          cos(x)