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

cmath.cos

Prev: cmath.atanh | Up: cmath | Next: cmath.cosh
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.cos
Tags: #public #python3 #stdlib #cmath


Import

import cmath
from cmath import cos

Signature & Overview

cmath.cos(z, /)

Return the cosine of z.

Usage

import cmath

assert cmath.isclose(cmath.cos(0), 1)
assert cmath.isclose(cmath.cos(1j), cmath.cosh(1))

Gotchas

REPL Inspect

from cmath import cos
help(cos)

Linked from

Related notes