MathGroup Archive 2004

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

Search the Archive

RE: Re: help with integration and warning message


I don't know if this is directly related, but there is a bug filed with 5.x
with local variables in summations and integrations. Mathematica does not
consistently treat iterators as local variables. In the first sum i is a
local variable, in the second it is not:

In[1]:=
i=1;
Sum[i, {i, 1, N}]
Sum[f[i], {i, 1, N}]


Out[1]=
\!\(1\/2\ N\ \((1 + N)\)\)

Out[2]=
N f[1]

Version 4.1 does not have this problem.

Jonas

> -----Original Message-----
> From: astanoff_otez_ceci at yahoo.fr 
To: mathgroup at smc.vnet.net
> [mailto:astanoff_otez_ceci at yahoo.fr] 
> Sent: den 26 mars 2004 09:56
> To: mathgroup at smc.vnet.net
> Subject: [mg47142] [mg47101] Re: help with integration and warning message
> 
> 
> Salman Durrani wrote:
> 
> > Hi,
> 
> > I am running a code which can be downloaded from:- 
> > http://www.itee.uq.edu.au/~dsalman/_downloads/Pbtest.nb
> 
> > I am getting the warning message, related to the intergal 
> defining the 
> > symbol [Chi]:
> 
> > "Unique::usym : 15 is not a symbol name or a valid symbol name"
> 
> > Can anyone please suggest how to correct the script and remove this 
> > warning.
> 
> Don't use 'K'.
> K is a generic index name used by Mathematica.
> Names that start with a capital letter may conflict with 
> built-in Mathematica 
> names... 
> --
> 0% de pub! Que du bonheur et des vrais adhérents !
> Vous aussi inscrivez-vous sans plus tarder!!
> Message posté à partir de http://www.gyptis.org, BBS actif 
> depuis 1995.
> 
> 
> 


  • Prev by Date: Re: Building a list
  • Next by Date: Re: Yet another Mathematica docs whopper
  • Previous by thread: Re: help with integration and warning message
  • Next by thread: Length of actual parameters in a function call.