MathGroup Archive 2006

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

Search the Archive

Re: Problem with derivate of product


Esa A E Peuha wrote:
> Mathematica 5.0 seems to have trouble with parsing this input:
> 
> In[1]:= D[Product[f[k,z],{k,0,m}],{z,n}]
> 
> Out[1]= D[Product[f[k, z], {k, 0, m}], z]
> 
> Has this been fixed in newer versions?
> 
What output do you expect? Since f is not defined, the product is 
returned unevaluated:

In[2]:=
Product[f[k, z], {k, 0, m}]

Out[2]=
Product[f[k, z], {k, 0, m}]

Compare with

In[5]:=
f[a_, b_] := b*Cos[a]

In[6]:=
Product[f[k, z], {k, 0, 2}]

Out[6]=
  3
z  Cos[1] Cos[2]

In[7]:=
D[Product[f[k, z], {k, 0, 2}], {z, 1}]

Out[7]=
    2
3 z  Cos[1] Cos[2]

HTH,
Jean-Marc


  • Prev by Date: Re: Problem with derivate of product
  • Next by Date: Re: Mathematica bugs?
  • Previous by thread: Re: Problem with derivate of product
  • Next by thread: SetAccuracy formatting question