Oihana PHP Arango

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
example
use function oihana\arango\db\functions\numerics\tan;

$expr = tan(0);
// Produces: 'TAN(0)'
see
https://docs.arangodb.com/stable/aql/functions/numeric/#tan
atan()

For the arctangent function.

sin()

For the sine function.

cos()

For the cosine function.

since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results