Compute the logarithm of every element using a selectable base.
Numeric.math.log(value, radix)Applies a logarithm variant across nested numeric inputs.
- Parameters:
value: Scalar, vector, or matrix input valuesradix: Logarithm base or natural logarithm variant
- Returns: Logarithms matching the input nesting shape
- NumPy: Covers
np.log,np.log2,np.log10,np.log1p,np.emath.log,np.emath.log2,np.emath.log10,np.emath.lognthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const value = Numeric.math.log(Math.E)
console.log(value)
// 1import Numeric from '@neabyte/numerix'
const values = Numeric.math.log([1, 10])
console.log(values)
// [0,2.302585092994046]import Numeric from '@neabyte/numerix'
const values = Numeric.math.log([1, 100], 10)
console.log(values)
// [0,2]import Numeric from '@neabyte/numerix'
const value = Numeric.math.log(1, '1p')
console.log(value)
// 0.6931471805599453