# PI(FofN,from,thru)

Evaluates the product of a series.

### Syntax

o_PI(FofN,from,thru)
  FofN: scalar Text - function to be evaluated with argument "n". Optionally an array input can be used for a more complex series. See Notes below.
  from: scalar number - lower limit of "n"
  thru: scalar number - upper limit of "n"
  return: numeric - the product of terms F(n) for n=from through n=thru

### Usage

An arbitrary function of "n" can be evaluated for a series. This implements a standard "PI" notation product.

### Location

menu: veeos ==> Math ==> PI

library: mathLib

### Example

o_PI("n^2*(n-1)",3,5) = (9*2)*(16*3)*(25*4) = 86400

### Notes

A very common operation for series is the product of the various terms. This evaluates that product.

New for R2: instead of being limited to a single range of input values, a more complex series such as a Kalman filter may be evaluated by specifying a function and a series of values in the form of a record.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

SIGMA

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 August 2021 11:51.