Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11674 > unrolled thread

Sum command

Started byRodrigo AP <digorna@gmail.com>
First post2012-09-08 07:48 +0000
Last post2012-09-09 09:17 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Sum command Rodrigo AP <digorna@gmail.com> - 2012-09-08 07:48 +0000
    Re: Sum command "Nasser M. Abbasi" <nma@12000.org> - 2012-09-09 09:17 +0000

#11674 — Sum command

FromRodrigo AP <digorna@gmail.com>
Date2012-09-08 07:48 +0000
SubjectSum command
Message-ID<k2et85$km8$1@smc.vnet.net>
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

-- 
Rodrigo

[toc] | [next] | [standalone]


#11685

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-09-09 09:17 +0000
Message-ID<k2hmqh$puo$1@smc.vnet.net>
In reply to#11674
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web