{
"id": "fn-math-acos",
"dataComponent": "math",
"heading": {
"title": "acos",
"badges": ["Math", "JSMath"]
},
"synopsis": "Computes the arccosine (in radians) of a single numeric argument between -1 and 1.",
"codeBlocks": [
"extend(\"math\")\\n\\nsput( math:acos(1) )\\n# => 0.0\\n\\nsput( math:acos(0) )\\n# => ~1.57079632679\\n\\n# Raises an error if the argument is out of range or not numeric."
],
"notes": [
"Takes exactly 1 argument in the domain [-1, 1]. Returns the angle in radians.",
"If called with an out-of-range value, it may return NaN or raise an error (implementation-dependent)."
]
}