> > How are you planning to change the interface? > > We haven't exactly decided yet. For starters we at least want to make sure > Sage can compute many integrals that Maxima can't (but say Maple and/or > Mathematica can compute). I've cc'd this email to sage-devel, so maybe > people > there (e.g., Ondrej Certik) will say more about what they're interested > in doing.
See all the relevant discussion here: http://groups.google.com/group/sage-newbie/browse_thread/thread/20283412c7064512 and here: http://groups.google.com/group/sage-devel/browse_thread/thread/2308561f175a0674/906f9b991c68de06 and feel free to join and tell us your opinion about it. > > > Perhaps making a syntax compatible with Mathematica's?? > > No, that's definitely not planned. > > > I've been thinking about this myself for a while. Sage could definitely > > make up their own syntax. > > We already did make up our own syntax, which fits most naturally with > how Python works. > In many cases it turns out to be exactly the same as Mupad and very > similar to Maple. As to syntax, I think in Python we could use: >>> integrate(x**3, (x, -1, 1)) 0 >>> integrate(sin(x), (x, 0, pi/2)) 1 >>> integrate(cos(x), (x, -pi/2, pi/2)) 2 as in SymPy, instead of sage: integral(x/(x^2+1), x, 0, 1) log(2)/2 as in SAGE currently, to be close to Mathematica. Because then you can use the syntax: integrate(cos(x*y), (x, -pi/2, pi/2), (y, 0, pi)) for multiple integrals. But anyway, it's just a cosmetic issue. > Having some sort of compatibility layer, e.g., a function that takes an almost > arbitrary mathematica expression and converts it to a sage expression *is* > on our todo list, so at least one could do, e.g., > from_mathematica('Sin[x^2]') > and get Sage's sin(x^2). We can already do this with almost arbitrary Maxima > expressions. If we could also do it for Mathematica, then we could actually > use Mathematica as a backend for sage's symbolic simplication, integration, > etc., as an option. This has been on the todo list for a while, but nobody > has > tackled implementing it. Are you interested in trying? In SymPy we were discussing how to write a Mathematica parser: http://code.google.com/p/sympy/issues/detail?id=161 you can find relevant links to some code and papers in there. I think it would be very worthy to have it - to feed in (almost) any Mathematica program and SAGE will know how to execute it using SAGE as a backend. Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
