W3cubDocs

/Nushell

math ln for math

Returns the natural logarithm. Base: (math e).

Signature

> math ln {flags}

Input/output types:

input output
list<number> list<number>
number number

Examples

Get the natural logarithm of e

>2.7182818|math ln|math round--precision4
1

Tips: Command math ln was not included in the official binaries by default, you have to build it with --features=extra flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_ln.html