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:

inputoutput
list<number>number
rangenumber
recordrecord
tablerecord

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 
╰───┴───╯