Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Sum of Products

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126661] Sum of Products
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Tue, 29 May 2012 05:48:34 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

	If I have a list and want to sum the products of each possible
grouping of two elements in the list, this program will do that:

		Total[Times @@@ Subsets[{a, b, c}, {2}]]

Is there any other, shorter, built-in Mathematica object that will
produce the same result?

	Thanks.

	Harvey



  • Prev by Date: Re: Stop on message?
  • Next by Date: FindDistributionParameters
  • Previous by thread: Re: how to add graphics options in a plot which is already produced and has a manipulator
  • Next by thread: Re: Sum of Products