Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

simple vactor magitude question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43754] simple vactor magitude question
  • From: Nathan Moore <nmoore at physics.umn.edu>
  • Date: Fri, 3 Oct 2003 02:28:42 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Suppose I generate a 1-d vecctor of "N" numbers, p[i], and now I want to
find the sum of (the vector element * index).  I think the syntax should look
something like,

Sum[p[i]*i,{i,0,N}]

but this doesn't seem to be the correct syntax - any help would be
appreciated.

Nathan Moore,
University of Minnesota Physics


  • Prev by Date: Re: Re: A question on interval arithmetic
  • Next by Date: poisson equation
  • Previous by thread: Re: Automatic execution of a notebook
  • Next by thread: Re: simple vactor magitude question