MathGroup Archive 2008

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

Search the Archive

Re: Product

  • To: mathgroup at
  • Subject: [mg87491] Re: Product
  • From: Szabolcs Horvát <szhorvat at>
  • Date: Fri, 11 Apr 2008 05:56:40 -0400 (EDT)
  • Organization: University of Bergen
  • References: <ftmtsj$4lf$>

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.

  • Follow-Ups:
  • 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