Documentación de Invantiveparte de Invantive Cloud
Foros de Soporte de InvantiveIniciar Sesión / Registrarse

LN

Sintaxis

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

Propósito

La función SQL LN calcula el logaritmo natural de un número. A diferencia de LOG, no se puede especificar ninguna base; la base es siempre el número e.

Véanse también LOG y EXP.

Parámetros:

  • Entrada (decimal): un número del que se quiere calcular el logaritmo natural.

Devuelve: el logaritmo natural del valor introducido.

Ejemplos

El siguiente ejemplo calcula el logaritmo natural de 1:

select ln(1)

-------------------
0

El siguiente ejemplo calcula el logaritmo natural del número e:

select ln(exp(1))

-------------------
1