MathGroup Archive 1994

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

Search the Archive

strange results of integration


Some strange results (isn't it a bug?): 

(* a normal probability distribution *)
In[1]:= p[x_, t_] = 1/(Sqrt[2Pi t])*Exp[-x^2/(2t)];

In[2]:= Integrate[ (Exp[s]-1)*p[s,h], {s,-Infinity, Infinity}]

On::none: Message SeriesData::csa not found.

Out[2]= 0

In[3]:= Integrate[ Exp[s]*p[s,h]-p[s,h], {s,-Infinity, Infinity}] 

               h/2       1
Out[3]= (-1 + E   ) Sqrt[-] Sqrt[h]
                         h

In[2] and In[3] are actually the same functions but the results are
different!! I also do not understand the Message.

Does anybody knows a simple way to get rid of Sqrt[1/h]*Sqrt[h]
assuming that h is real and positive, without Unprotect and
redefining Sqrt?


					Zvi Wiener,
					Dept.of Theor. Math.
					The Weizmann Inst. of Sc.
					Rehovot, 76100, Israel.





  • Prev by Date: MathLitSurvey
  • Next by Date: Special Input Forms
  • Previous by thread: MathLitSurvey
  • Next by thread: Special Input Forms