- #1
kaizen.moto
- 98
- 0
Hi everyone,
I have these warning solving summation:
*************************************************
In[1]: f[m_, n_] := 2 n + 3 m;
In[2]: g[m_, n_] := Sum[f[m, n], {m, 1, m, 2}, {n, n, 1}];
In[3]: g[1, 1]
During evaluation of In[3]:= Sum::itraw: Raw object 1 cannot be used as an iterator. >>
During evaluation of In[3]:= Sum::itraw: Raw object 1 cannot be used as an iterator. >>
Out[3]= Sum[f[1, 1], {1, 1, 1, 2}, {1, 1, 1}]
*************************************************
The idea is that I wanted to make summation of g[m,n] with variable m, from m=1 until m = m with step 2 and keeping variable n at all cycles. For instance:
g[5,3]= f[1,3]+f[3,3]+f[5,3]
or
g[19,5]=f[1,5]+f[3,5]+f[5,5]+...+f[19,5]
Please help me to solve this problem.
Thank you.
I have these warning solving summation:
*************************************************
In[1]: f[m_, n_] := 2 n + 3 m;
In[2]: g[m_, n_] := Sum[f[m, n], {m, 1, m, 2}, {n, n, 1}];
In[3]: g[1, 1]
During evaluation of In[3]:= Sum::itraw: Raw object 1 cannot be used as an iterator. >>
During evaluation of In[3]:= Sum::itraw: Raw object 1 cannot be used as an iterator. >>
Out[3]= Sum[f[1, 1], {1, 1, 1, 2}, {1, 1, 1}]
*************************************************
The idea is that I wanted to make summation of g[m,n] with variable m, from m=1 until m = m with step 2 and keeping variable n at all cycles. For instance:
g[5,3]= f[1,3]+f[3,3]+f[5,3]
or
g[19,5]=f[1,5]+f[3,5]+f[5,5]+...+f[19,5]
Please help me to solve this problem.
Thank you.