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