MathGroup Archive 2012

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

Search the Archive

Re: Sum command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128019] Re: Sum command
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Sun, 9 Sep 2012 05:10:07 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <k2et85$km8$1@smc.vnet.net>
  • Reply-to: nma at 12000.org

On 9/8/2012 2:48 AM, Rodrigo AP wrote:
> Dear group,
>
> How could I get: Sum[f[i],{i,7/2,4}]=f[4] or   Sum[f[i],{i,3/2,2}]=f[2] ? I
> mean, I want the iterator running over the integers only ...
>
> Regards
>

In[4]:= Last@Sum[f[i],{i,7/2,4,1/2}]
Out[4]= f[4]

In[7]:= Last@Sum[f[i],{i,3/2,2,1/2}]
Out[7]= f[2]

--Nasser



  • Prev by Date: Re: Count inside a matrix?
  • Next by Date: Re: A new FrontEnd
  • Previous by thread: Re: Sum command
  • Next by thread: Count inside a matrix?