ATAN
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> ATAN[ATAN]:::quoted
ATAN --> End((END))
Purpose
The ATAN SQL function returns the angle of the provided tangent.
Parameters:
- Input (
decimal): the tangent to get the angle of.
Returns: A number which represents the angle of the provided tangent as decimal.
Examples
ATAN retrieves the angle of the tangent 0:
select atan(0)
--------
0
ATAN retrieves the angle of the tangent 1, rounded to four decimals:
select round(atan(1), 4)
--------
0.7854