Oihana PHP Arango

asin.php

Table of Contents

Functions

asin()  : string
Return the arcsine of a value.

Functions

asin()

Return the arcsine of a value.

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

This helper wraps the ArangoDB AQL function ASIN(value) which returns the arcsine (inverse sine) of a value in radians. The value must be between -1 and 1 (inclusive), otherwise it returns null.

Example AQL usage:

ASIN(0)  // returns 0
ASIN(1)  // returns 1.5707963267948966 (π/2)
ASIN(-1) // returns -1.5707963267948966 (-π/2)
ASIN(2)  // returns null (out of range)
Parameters
$value : string|int|float

The input value (must be between -1 and 1).

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

$expr = asin(0.5);
// Produces: 'ASIN(0.5)'
see
https://docs.arangodb.com/stable/aql/functions/numeric/#asin
sin()

For the sine function.

acos()

For the arccosine function.

atan()

For the arctangent function.

since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results