On Sat, Feb 20, 2010 at 3:29 PM, Dr. David Kirkby <david.kir...@onetel.net> wrote: > The test reads like this: > > ############################################## > Numerical approximation:: > > sage: h = integral(sin(x)/x^2, (x, 1, pi/2)); h > integrate(sin(x)/x^2, x, 1, 1/2*pi) > sage: h.n() > 0.33944794097891573 > ################################################# > > > The test certainly does *not* test Sage's ability to correctly calculate > that integral. It tests the documentation gives the same answers each, but > that is not a lot of use of those answers are incorrect. Nobody appears to > have bothered to evaluate if they are correct or not.
This isn't supposed to test Sage's ability to correctly calculate that integral. It's supposed to test the code which calls the numerical integration routine when you call .n() on an unevaluated integral. Tests for correctness should be done at a lower level. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org