MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Product

Steven wrote:
> Silly beginner's question: is there a function to multiply all elements of a
> list, like Total does for addition?

No, there isn't.  But it would be redundant anyway because it is very 
easy to build your own:

In[1]:= Times @@ {1, 2, 3, 4, 5}
Out[1]= 120

Look up Apply in the documentation.

  • Prev by Date: Re: Re: Pattern problem: How to count from a long list of numbers
  • Next by Date: Re: Product
  • Previous by thread: RE: Product
  • Next by thread: Re: Re: Product