On this page
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
- Returns
complex; input in radians.
REPL Inspect
from cmath import tan
help(tan)
Linked from
Related notes
- tuts/python3/stdlib_module/cmath/sqrt Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/tanh Linked here; links to this page; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/cmath/acos Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/acosh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asin Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/asinh Linked here; shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atan shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/atanh shared tags: #cmath, #stdlib
- tuts/python3/stdlib_module/cmath/cos shared tags: #cmath, #stdlib