math product for math
Returns the product of a list of numbers or the products of each column of a table.
Signature
> math product {flags}
Input/output types:
| input | output |
|---|---|
| list<number> | number |
| range | number |
| table | record |
| record | record |
Examples
Compute the product of a list of numbers.
> [2 3 3 4] | math product 72
Compute the product of each column in a table.
> [[a b]; [1 2] [3 4]] | math product ╭───┬───╮ │ a │ 3 │ │ b │ 8 │ ╰───┴───╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_product.html