brooksmoses: (0)
brooksmoses ([personal profile] brooksmoses) wrote 2004-01-26 10:49 pm (UTC)

Hmm. After poking at that in Mathematica a bit to evaluate the integrals, I can confirm that, yes, that does indeed seem to work. (Well, ok, it doesn't work as written because the limit should be (x2+y2)=1 rather than (x2+y2)=0, but close enough.)

Writing the code to do all the special cases for the (x2+y2)=1 arc intersecting the rectangle isn't going to be easy, I suppose, but then it wasn't ever going to be -- and it is at least quite possible.

Thanks muchly, masked commenter, whomever you are!

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting