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

math.acos

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


Import

import math
from math import acos

Signature & Overview

math.acos(x, /)

Return the arc cosine (measured in radians) of x.

Usage

import math

assert math.isclose(math.acos(1.0), 0.0)
assert math.isclose(math.acos(0.0), math.pi / 2)

Gotchas

REPL Inspect

from math import acos
help(acos)

Linked from

Related notes