acos.php
Table of Contents
Functions
- acos() : string
- Return the arccosine of a value.
Functions
acos()
Return the arccosine of a value.
acos(string|int|float $value) : string
This helper wraps the ArangoDB AQL function ACOS(value) which returns
the arccosine (inverse cosine) of a value in radians. The value must be
between -1 and 1 (inclusive), otherwise it returns null.
Example AQL usage:
ACOS(1) // returns 0
ACOS(0) // returns 1.5707963267948966 (π/2)
ACOS(-1) // returns 3.141592653589793 (π)
ACOS(2) // returns null (out of range)
Parameters
- $value : string|int|float
-
The input value (must be between -1 and 1).
Tags
Return values
string —The formatted AQL expression.