MathGroup Archive 2003

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

Search the Archive

Re: Summation w/ Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43403] Re: [mg43383] Summation w/ Functions
  • From: Dr Bob <drbob at bigfoot.com>
  • Date: Fri, 29 Aug 2003 07:16:04 -0400 (EDT)
  • References: <200308270805.EAA11329@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

If Wave is a 2-dimensional matrix, Wave[[j,0]] is the wrong notation -- the 
0-th element of the j-th row will be the head List, and I don't think you 
mean to integrate List over x!

Anyway, it's j that Mathematica is complaining about, before getting to 
that issue.

Simplifying things a little, this works:

wave = Range[10];
Sum[ConstantCalc[someVars, j, someMoreVars]*wave[[j]], {j, 1, 10}]

But this doesn't:

wave = Range[10];
Sum[ConstantCalc[someVars, j, someMoreVars]*wave[[j]], {j, 1, n}]

That makes a certain amount of sense, since the second form is undefined if 
n > 10, for instance.  But then the Sum should return unevaluated.  The 
error messages make no sense at all.

Bobby


On Wed, 27 Aug 2003 04:05:09 -0400 (EDT), Musaddiq Awan 
<reallymadsquid at hotmail.com> wrote:

> I am basically trying to sum something while calling a function of it.
> Mathematica is giving me the error that IntegerPart[j] is not an
> integer. This is the general idea of my command. (ConstantCalc is a
> function)
>
> Sum[ConstantCalc[someVars,j,someMoreVars]*Integral[Wave[[j,0]],{x,- 
> Infinity,Infinity}],{j,1,n}]
>
>



-- 
majort at cox-internet.com
Bobby R. Treat


  • Prev by Date: Re: Pick up coordinates along different contours.
  • Next by Date: matlab calling mathematica
  • Previous by thread: Summation w/ Functions
  • Next by thread: Pick up coordinates along different contours.