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

TAN

Syntax

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

Purpose

The TAN SQL function returns the tangent of the provided angle. See also ATAN and ATAN2.

Parameters:

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

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

Examples

TAN retrieves the tangent of the angle:

select tan(0)

--------
0

The following example retrieves the tangent of the angle 1 radian:

select tan(1)

----------------
1.5574077246549