invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

SIN

Syntax

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> SIN[SIN]:::quoted
    SIN --> End((END))

Purpose

The SIN SQL function returns the sine of the provided angle.

Parameters:

  • Input (decimal): the angle to get the sine of.

Returns: A number which represents the sine of the provided angle.

Examples

SIN retrieves the sine of the angle 0:

select sin(0)

--------
0

SIN retrieves the sine of the angle 1, rounded to four decimals:

select round(sin(1), 4)

--------
0.8415