Oihana PHP Arango

atan.php

Table of Contents

Functions

atan()  : string
Return the arctangent of a value.

Functions

atan()

Return the arctangent of a value.

atan(string|int|float $value) : string

This helper wraps the ArangoDB AQL function ATAN(value) which returns the arctangent (inverse tangent) of a value in radians. The value can be any real number.

Example AQL usage:

ATAN(0)   // returns 0
ATAN(1)   // returns 0.7853981633974483 (π/4)
ATAN(-1)  // returns -0.7853981633974483 (-π/4)
ATAN(INF) // returns 1.5707963267948966 (π/2)
Parameters
$value : string|int|float

The input value (any real number).

Tags
example
use function oihana\arango\db\functions\numerics\atan;

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

For the tangent function.

atan2()

For the two-parameter arctangent.

acos()

For the arccosine function.

asin()

For the arcsine function.

since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results