log(x: number): number
Computes the natural logarithm (base e).
Computes the natural logarithm (base e) for each element in a number, array, or matrix.
Natural logarithm of a single number
Natural logarithm of a single number
import { assertEquals } from "jsr:@std/assert"; assertEquals(log(6), 1.791759469228055);
log(x: array): array
Computes the natural logarithm (base e).
Computes the natural logarithm (base e) for each element in a number, array, or matrix.
Natural logarithm of a single number
Natural logarithm of a single number
import { assertEquals } from "jsr:@std/assert"; assertEquals(log(6), 1.791759469228055);
x: array
The input value(s)
The natural logarithm of the input value(s)
log(x: matrix): matrix
Computes the natural logarithm (base e).
Computes the natural logarithm (base e) for each element in a number, array, or matrix.
Natural logarithm of a single number
Natural logarithm of a single number
import { assertEquals } from "jsr:@std/assert"; assertEquals(log(6), 1.791759469228055);
x: matrix
The input value(s)
The natural logarithm of the input value(s)