Applies to
Description
Function that returns the arctangent of a specified number
().
Sample Source Pattern
Syntax
Math.atan( expression )
Arguments
expression
: Numeric expression.
Return Type
Numeric expression between −2π and 2π.
Examples
CREATE OR REPLACE FUNCTION compute_atan(a float)
RETURNS float
LANGUAGE JAVASCRIPT
AS
$$
return Math.atan(A);
$$
;
SELECT COMPUTE_ATAN(-30);
COMPUTE_ATAN(-30)|
-----------------+
-1.537475331|
Known Issues
No issues were found.
No related EWIs.