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

cmath.acos

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


Import

import cmath
from cmath import acos

Signature & Overview

cmath.acos(z, /)

Return the arc cosine of z.

Usage

import cmath

assert cmath.isclose(cmath.acos(1), 0)
assert cmath.acos(2).imag != 0   # real math.acos(2) would raise ValueError

Gotchas

REPL Inspect

from cmath import acos
help(acos)

Linked from

Related notes