The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: A bug-looking behavior during integration
Replies: 2   Last Post: Mar 3, 2013 10:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Scott Hemphill

Posts: 196
Registered: 12/13/04
Re: A bug-looking behavior during integration
Posted: Mar 3, 2013 10:58 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply writes:


> Yes, it looks like this runs into some fragility in the UnitStep handling code. To work around that area I'd suggest using a Piecewise equivalent.
> In[2]:= Integrate[
> Piecewise[{{1, Sqrt[Sqrt[x^2 + y^2] + x] - .7*Sqrt[x^2 + y^2] >= 0}},
> 0], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]
> Out[2]= 19.6268

Or, replacing the ".7" with 7/10, you get:

15000 Pi
Out[1]= --------

Scott Hemphill
"This isn't flying. This is falling, with style." -- Buzz Lightyear

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.