Navigation

Operators and Keywords

Function List:

C++ API

: e
: e (n)
: e (n, m)
: e (n, m, k, …)
: e (…, class)

Return a scalar, matrix, or N-dimensional array whose elements are all equal to the base of natural logarithms.

The constant ‘e’ satisfies the equation log (e) = 1.

When called with no arguments, return a scalar with the value e.

When called with a single argument, return a square matrix with the dimension specified.

When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions.

The optional argument class specifies the return type and may be either "double" or "single".

See also: log, exp, pi, I.

Package: octave