Re: Odd behavior (bug?) with Exp[-x^2} and Erf
- To: mathgroup at smc.vnet.net
- Subject: [mg42943] Re: [mg42929] Odd behavior (bug?) with Exp[-x^2} and Erf
- From: Selwyn Hollis <selwynh at earthlink.net>
- Date: Tue, 5 Aug 2003 02:04:56 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Yep, that's definitely a bug. However, it works correctly in 5.0. ----- Selwyn Hollis http://www.math.armstrong.edu/faculty/hollis On Monday, August 4, 2003, at 12:45 AM, AES/newspost wrote: > Very reluctant to claim I've found a bug in Mathematica, but the > following cells certainly aren't doing what I expect them to: > > In[97]:= > x; Remove["Global`*"] > > In[98]:= > f[x_] = (Exp[-5(x + 1)^2] + Exp[-5x^2] + Exp[-5(x - 1)^2])^2 > > In[99]:= > Plot[f[x], {x, 0, 2}, PlotRange -> {{0, 2}, {0, 2}}]; > > In[100]:= > g[y_] = Integrate[f[x], {x, 0, y}, Assumptions -> y > 0] > > In[101]:= > Plot[g[y], {y, 0.001, 2}, PlotRange -> {{0, 2}, {0, 1}}]; > > > (Mathematica 4.2.0.0, Mac iBook, OS 9.2) > >