Does anyone know how to *easily* do numerical integration on SAGE? The problem is that when doing (say) arc length problems, if SAGE doesn't know how to do the antiderivative, it doesn't default to some sort of numerical role, and the only efficient way I have found to do it so far is to convert the function into a Piecewise function and then use the riemann_... or trapez... methods, which is tiresome to say the least in a classroom setting, not to mention very intimidating for the students. Ted Kosan's graphic http://sage.math.washington.edu/home/tkosan/sage_potential_target_audience.png comes to mind.
I assume I am missing something here, because it seems odd that it would have to be made Piecewise first, that there wouldn't be direct numerical integration methods available. On a related note, so far I just code my own Simpson's Rule (in the weighted average version, which is probably not optimal?), but one would think that would be nearly trivial to add to the method list for the Piecewise function type. Thanks for any assistance. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---