tan.php
Table of Contents
Functions
- tan() : string
- Return the tangent of a value.
Functions
tan()
Return the tangent of a value.
tan(string|int|float $value) : string
This helper wraps the ArangoDB AQL function TAN(value) which returns
the tangent of a value in radians.
Example AQL usage:
TAN(0) // returns 0
TAN(0.7853981633974483) // returns 1 (tan(π/4))
TAN(1.5707963267948966) // returns a very large number (tan(π/2))
TAN(doc.angle) // returns tangent of the angle
Parameters
- $value : string|int|float
-
The input value in radians.
Tags
Return values
string —The formatted AQL expression.