W3cubDocs

/Nushell

math log for math

Returns the logarithm for an arbitrary base.

Signature

> math log {flags} (base)

Parameters

  • base: Base for which the logarithm should be computed

Input/output types:

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

Examples

Get the logarithm of 100 to the base 10

>100|math log10
2

Get the log2 of a list of values

> [1684] |math log2
╭───┬──────╮
04.00
13.00
22.00
╰───┴──────╯

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