On Nov 23, 2008, at 3:39 AM, William Stein wrote: > > On Sat, Nov 22, 2008 at 10:56 PM, Tim Lahey <[EMAIL PROTECTED]> > wrote: >> As for the option to use Maple/Mathematica, I think as long as there >> is relatively good conversion of expressions, it's best to just let >> the user call the Maple/Mathematica command directly. Otherwise, you >> need to write code to detect if one is installed and call it with >> a fallback plan if they're not. > > I don't envision any autodetection or anything like that. What I > envision > is that the integrate command has an option algorithm='maple', say, > that > does the integral transparently using maple, e.g., > > sage: integrate(sin(x)*cos(x)*x) > (sin(2*x) - 2*x*cos(2*x))/8 > sage: integrate(sin(x)*cos(x)*x, algorithm='maple') > (sin(2*x) - 2*x*cos(2*x))/8 > sage: integrate(sin(x)*cos(x)*x, algorithm='mathematica') > (sin(2*x) - 2*x*cos(2*x))/8 > sage: integrate(sin(x)*cos(x)*x, algorithm='sympy') > (sin(2*x) - 2*x*cos(2*x))/8 > sage: integrate(sin(x)*cos(x)*x, algorithm='axiom') > (sin(2*x) - 2*x*cos(2*x))/8 >
Ah, I like that option. To be honest, I haven't even really tried Maple from Sage yet. To be honest, one of the reasons I want to switch to Sage for is the LaTeX export. Maple's is awful and talking to the developers, they have no interest in improving it. I've been contemplating the possibility of exporting the notebook to LaTeX, but that requires that I get more familiar with the notebook code. The code in, http://www.iwriteiam.nl/html2tex.html may be useful as a starting point. It's GPL so that's good. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~---------~--~----~------------~-------~--~----~ 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---