SIGMA(FofN,from,thru)

Evaluates the sum of a series.


Syntax

o_SIGMA(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 sum 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 "SIGMA" notation sum.

Location

menu: veeos ==> Math ==> SIGMA

library: mathLib

Example

o_SIGMA("n^2*(n-1)",3,5) = (9*2)+(16*3)+(25*4) = 166

Notes

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

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. FofN and A must be record fields as shown below.

using an array input 

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

PI


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:03.