OpenMusic Reference
om-log
om-log
(arithmetic module) -- returns the natural logarithm of a number
Syntax
om-e self &optional base
Inputs
name | data type(s) | comments |
---|---|---|
self | a number or tree | |
base | a number | optional; the base for which to calculate the logarithm |
Output
output | data type(s) | comments |
---|---|---|
first | a number; a tree | returns the natural logarithm of the number or tree at self |
Description
Returns the natural logarithm of self . The natural logarithm is the power to which e must be raised to yield a number (see below). Bases other than e may be used by putting them into the optional second input.
If self is a tree, then a tree of identical dimensions is returned, containing the logarithm of every element of the tree.
![]() |
e is a mathematical constant, like � (pi). It is the natural logarithm, the unique function which is its own derivative (the derivative of e x is e x.) If you don’t know what this is, don’t worry about it- you probably won’t need to use it.
—|—
Prev | Home | Next |
---|---|---|
om-e | Up | om-max |