MathGroup Archive 2004

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

Search the Archive

Re: Integrate UnitStep, Bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50350] Re: Integrate UnitStep, Bug?
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sat, 28 Aug 2004 04:38:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 8/27/04 at 2:57 AM, drbob at bigfoot.com (DrBob) wrote:

>I think both results are wrong, and the correct answer is Abs[b-a].
>Unless these Plots are wrong?

>b = 2; a = 3;
>Plot[fl[e](fr[e - a] - fr[e]), {e, -5, 5}, PlotStyle -> {Thickness[0.01]}]

This plot shows the function to be 0 for e < 0 or e > 2 and 1 otherwise. So, the integral is clearly 2 x 1 = 2 = Min[a,b] not Abs[b-a]

>b = 5; a = 3;
>Plot[fl[e](fr[e - a] - fr[e]), {e, -5, 5}, PlotStyle -> {Thickness[0.01]}]

This plot shows the function to be 0 for e < 0 or e > 3 and 1 otherwise. So, the integral is clearly 3 x 1 = 3 which again is Min[b,a]
--
To reply via email subtract one hundred and four


  • Prev by Date: Animate
  • Next by Date: Timing anomaly
  • Previous by thread: Re: Integrate UnitStep, Bug?
  • Next by thread: Re: Integrate UnitStep, Bug?