log(var x): var

Original (English)

Logarithm of x with base e.

Parameters:

x - any var.

Returns:

ln(x)

Remarks:

  • For the logarithm with base n, divide by log(n). For instance, log10(x) = log(x)/log(10).

Examples:

x = log(1); // x == 0 
x = log(2.718); // x == 1 (2.718 is an approximation to the constant e).
x = log(y)/log(2); // x == log2(y), i.e. log(y) base 2.

See also:

exp, pow, sqrt

Übersetzung (Deutsch)

Logarithmus von x zur Basis e.

Parameter:

x - ein beliebiger var.

Rückgabe:

ln(x)

Bemerkungen:

  • Für den Logarithmus zur Basis n, teilen Sie durch log(n). Zum Beispiel: log10(x) = log(x)/log(10).

Beispiele:

x = log(1); // x == 0 
x = log(2.718); // x == 1 (2.718 ist eine Annäherung an die Konstante e).
x = log(y)/log(2); // x == log2(y), d.h. log(y) zur Basis 2.

Siehe auch:

exp, pow, sqrt

► Neueste Version online