MathGroup Archive 2008

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

Search the Archive

Re: Re: Product

But of course Total is also redundant!  Plus @ {1,2,3,4}

So the issue is one of language design: when does a particular case of a 
more general construction occur so frequently that a special function
should be introduced for it.

Szabolcs Horv=E1t wrote:
> 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.

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: what does Method->"HighDimensionalEmbedding" actually do for GraphPlot?
  • Next by Date: Re: Tilted decimals on the x-axis to avoid overlapping
  • Previous by thread: Re: Product
  • Next by thread: Re: Product