MathGroup Archive 2001

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

Search the Archive

Re: clever way to do a product?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27188] Re: clever way to do a product?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 9 Feb 2001 03:10:33 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <95tqsr$mb3@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

where is the "j" in a dot product 

Sum[v[[i]]*w[[i]],{i,1,n}]

??

Otherwise Dot[Drop[v,{j}],Drop[w,{j}]] will do it.

Regards
  Jens

Tim Ebringer wrote:
> 
> Does anyone know of a clever way where I can calculate a product, where i
> runs from 1 to n, except where i=j?
> 
> Tim.


  • Prev by Date: RE: clever way to do a product?
  • Next by Date: Re: clever way to do a product?
  • Previous by thread: RE: clever way to do a product?
  • Next by thread: Re: clever way to do a product?