On this page
  1. cmath.tan
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

cmath.tan

Prev: cmath.sqrt | Up: cmath | Next: cmath.tanh
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.tan
Tags: #public #python3 #stdlib #cmath


Import

import cmath
from cmath import tan

Signature & Overview

cmath.tan(z, /)

Return the tangent of z.

Usage

import cmath

assert cmath.isclose(cmath.tan(cmath.pi / 4), 1)

Gotchas

REPL Inspect

from cmath import tan
help(tan)

Linked from

Related notes