MathGroup Archive 2002

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

Search the Archive

Re: A question about summation indicies

  • To: mathgroup at
  • Subject: [mg33111] Re: [mg33095] A question about summation indicies
  • From: Tomas Garza <tgarza01 at>
  • Date: Sun, 3 Mar 2002 06:30:39 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

Yes, it does. x has not ben defined, so let's take a look at what's going on
using FullForm (BTW, try not use capital letters for your variables; they
are supposed to be reserved for Mathematica functions):

FullForm[Sum[x[i], {i, 1, n}]]
Sum[x[i], List[i,1,n]]

Something similar happens for the Sum with j instead of i, and it is obvious
that List[i, 1, n] is not equal to List[j, 1, n], and this is why you don't
get a "True". However, if you have a previously defined x, for example

x[i_] := 2^i


Sum[x[i], {i, 1, n}] == Sum[x[j], {j, 1, n}]

Tomas Garza
Mexico City

----- Original Message -----
From: "Mark Morrissey" <mmorriss at>
To: mathgroup at
Subject: [mg33111] [mg33095] A question about summation indicies

> Hi - I have a simple question that probably has a simply answer.
> Why does Sum[x[i],{i,1,N}]==Sum[x[j],{j,1,N}]
> not produce a 'True' in Mathematica???
> Mark Morrissey
> Associate Professor of Meteorology
> Associate State Climatologist for Research
> University of Oklahoma
> 710 Asp Ave, Suite 8
> Norman, OK 73069
> 405 447-8412

  • Prev by Date: Re: kernel running programs
  • Next by Date: Re: Notebooks and CVS: how to automatically strip output?
  • Previous by thread: A question about summation indicies
  • Next by thread: Re: A question about summation indicies