invantive-dokumentationen del af invantive cloud
Invantive Support ForumsLog ind / Tilmeld dig

ACOS

Syntaks

%%{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))

Formål

Funktionen ACOS SQL returnerer vinklen for den angivne cosinus.

Se også COS.

Parametre:

  • Input (decimal): cosinus, hvor vinklen skal findes.

Returnerer: Et tal, som repræsenterer vinklen for den angivne cosinus som decimal.

Eksempler

ACOS henter vinklen for cosinus 1:

select acos(1)

--------
0

ACOS henter vinklen for cosinus 0, afrundet til fire decimaler:

select round(acos(0), 4)

--------
1.5708