Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Product of a sequence (product)

Product of an expression over one or more ranges.

How to write it

product(f, k = a..b)

The product over the range.

f
The expression or function to work on. Takes an expression.
k = a..b
The index and its bounds; a bound may be inf. Takes a variable with its range.

product(f, i = a..b, j = a..b)

A double product.

f
The expression or function to work on. Takes an expression.
i = a..b
The first index and its range. Takes a variable with its range.
j = a..b
The second index and its range. Takes a variable with its range.

Examples

  • ∏k=15k=120\displaystyle \prod_{k=1}^{5} k = 120
    product(k, k = 1..5)

    In the solver, product(k, k = 1..5) gives 120.

    Open in the solver
  • ∏k=14(1+1k)=5\displaystyle \prod_{k=1}^{4} \left(1+\frac{1}{k}\right) = 5
    product(1 + 1/k, k = 1..4)

    In the solver, product(1 + 1/k, k = 1..4) gives 5.

    Open in the solver
  • ∏i=12∏j=12(i+j)=72\displaystyle \prod_{i=1}^{2} \prod_{j=1}^{2} (i+j) = 72
    product(i + j, i = 1..2, j = 1..2)

    In the solver, product(i + j, i = 1..2, j = 1..2) gives 72.

    Open in the solver
  • numeric_product

    Multiply an expression over a range, as a decimal.

  • series

    Series expansion of an expression about a point.

  • numeric_sum

    Add up an expression over a range, as a decimal.

  • series_coefficient

    The coefficient of the term of a given order in the series of an expression.

  • sum

    Sum of an expression over one or more ranges.

  • next_terms

    The terms that follow a list, given only when a rule explains it and predicts two more.