Spec-Zone.ru › 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
number float
list<number> list<float>
range list<number>

Examples

Get the logarithm of 100 to the base 10.

> 100 | math log 10
2.0

Get the log2 of a list of values.

> [16 8 4] | math log 2
╭───┬──────╮
│ 0 │ 4.00 │
│ 1 │ 3.00 │
│ 2 │ 2.00 │
╰───┴──────╯

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API