FANDOM



(84) :prod(list)
(89) :product(list)

Finds the product of every term in a list.

(84) :prod(list,start,end)
(89) :product(list,start,end)

Finds the product of every term between the startth term and the endth term. prod({1,2,3,4},2,3) would return 2*3; 6.

LocationEdit

  • 2ND + STAT (LIST)
  • MATH
  • 5:prod(

ExampleEdit

:1I
:0→dim(L1)
:Disp "NUM MULTIPLIER"
:Disp "","ENTER 0 TO","END INPUT"
:Input "NUMBER:",I
: 
:While I0
:Input "NUMBER",I
:dim(L1)+1→dim(L1)
:I→L1(dim(L1)-1)
:End
:
:Disp "THE PROD IS",prod(L1)

This is an alternate to keeping a running total. Easier than keeping a running total especially if one plans on using other commands on the list.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.