On Sep 1, 1:30 pm, David Kirkby <david.kir...@onetel.net> wrote: > On 1 September 2010 17:45, kcrisman <kcris...@gmail.com> wrote: > > > > > On Sep 1, 11:55 am, David Kirkby <david.kir...@onetel.net> wrote: > >> Has anyone given thought for making Sage read Mathematica syntax? I've > >> seen a recent video from William stating it is NOT an aim of Sage to > >> be clone of any of the 4 M's - in contrast, Octave is a clone of > >> MATLAB. > > <snip> > > >> Getting Sage to read Mathematica and do useful things with it, should > >> make an interesting project for a computer science student. Although I > >> don't know much about this, I would be guess this would have to be an > >> MSc project, not an undergraduate one as I doubt doing any of this > >> would be trivial. > > <snip> > > >> Has anyone got any comments? > > > whuss at some point added something like this for both Mma and Maple, > > though very basic, as part of another ticket (symbolic sums?). I > > can't remember where it is and am unfortunately having some internet > > issues :( but anyway I believe this code was merged into Sage at some > > point. > > > - kcrisman > > Unless I'm *very* mistaken, doing this would be a non-trivial project, > so I doubt someone would have done it for both Mathematica and Maple > as part of another ticket. But of course I may be wrong.
If I recall correctly, it was truly basic, and certainly likely to not work in many situations - but for a few very specific purposes it was better than nothing. I think the following was the relevant bit. - kcrisman sage: sage.calculus.calculus.symbolic_sum?? <snip> #. Sage can currently only understand a subset of the output of Maxima, Maple and Mathematica, so even if the chosen backend can perform the summation the result might not be convertable into a Sage expression. <snip> sage: sage.interfaces.mathematica?? <snip> def _sage_(self): r""" Try to convert a mathematica expression back to a Sage expression. This currently does not implement a parser for the Mathematica output language, therefore only very simple expressions will convert successfully. EXAMPLES:: sage: m = mathematica('x^2 + 5*y') # optional - mathematica sage: m.sage() # optional - mathematica x^2 + 5*y -- 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