12: The Equation Solver 177
File name : English-M02-1-040308(Print).doc Print data : 2004/3/9
calculated and added to the sum. Thus the stored value of
X
is used to
calculate
X
+ 2
X
2
+ 3
X
3
+ 4
X
4
+ 5
X
5
+ 6
X
6
.
The following equation uses a variable as the ending value, 0 as the
beginning value, and a step size of 2.
If 8 is stored in
LAST
,
I
takes on values of 0, 2, 4, 6, and 8. Then the
stored value of
X
will calculate 2X
2
+ 4X
4
+ 6X
6
+ 8X
8
.
Accessing CFLO and SUM Lists from the Solver
You can use a Solver equation to perform calculations other than those
in the CFLO and SUM menus using data stored in CFLO and SUM lists.
The following Solver functions gain access to these lists.
CFLO-listname
returns the number of the last flow in the
specified CFLO list. For example, if the last flow in the list INV were
, then
would equal 6.00.
CFLO-listname
flow number
returns the value of the
specified flow.
CFLO-listname
flow number
returns the number of times the
specified flow occurs.
SUM-listname
returns the number of items in the specified
SUM list.
SUM-listname
item number
returns the value of the
specified item.
Summation of List Data.
The
Σ
function can be used to sum calculations
done with numbers in lists. For example, the following equation
calculates
Σ
x
i
2
y
i
2
for values stored in two SUM lists named XVAR and
YVAR, which must have the same number of items: