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

cmath.tanh

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


Import

import cmath
from cmath import tanh

Signature & Overview

cmath.tanh(z, /)

Return the hyperbolic tangent of z.

Usage

import cmath

assert cmath.isclose(cmath.tanh(0), 0)

Gotchas

REPL Inspect

from cmath import tanh
help(tanh)

Linked from

Related notes