MathGroup Archive 2007

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

Search the Archive

how to make Sum[n,{n,1,5}] to print 1+2+3+4+5? HoldForm?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79353] how to make Sum[n,{n,1,5}] to print 1+2+3+4+5? HoldForm?
  • From: Nasser Abbasi <nma at 12000.org>
  • Date: Wed, 25 Jul 2007 02:11:41 -0400 (EDT)

hi, I am using version 6

what is the trick to make Sum[] just print the terms first, before
adding them? Say I want to do

r= Sum[n,{n,1,5}]

But I want to see  1+2+3+4+5, i.e. the terms printed out before they
are actually added.

then later I can do Evaluate[r] or N[r] something like this to get it
to actually do the sum.

I tried the different Hold commands, but non seems to do it.

thanks,
Nasser



  • Prev by Date: Re: Drivers for 3DConnexions SpaceNavigator/Ball ?
  • Next by Date: Expand all cells?
  • Previous by thread: Fwd: combined front end and html conversion problems
  • Next by thread: Re: how to make Sum[n,{n,1,5}] to print 1+2+3+4+5? HoldForm?