Math Functions
math.acos()
Return inverse cosine in radians in the interval from zero to pi. Real inputs must lie between -1 and 1.
Formal Syntax & Structure
python syntaxpython
math.acos(x, /)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | real number | Input real value. |
Return Value
float
Floating-point result; finite precision and domain restrictions apply.
Working Example
Example Snippetpython
import mathprint(math.acos(1))