- From: Stan Devitt <jsdevitt@stratumtek.com>
- Date: Tue, 08 Jul 2003 10:55:16 -0400
- To: Ana Skupch <anaskupch@cecilija.zesoi.fer.hr>
- CC: www-math@w3.org
A very natural thing to do is to write a small library of functions in Maple or Mathematica such as, for example Plus := proc(a,b) a + b end; and then use your XSLT to write Plus(a,b) instead of a+b. Also, both systems import MathML and so can be used to re-write it after importing the original XML expression. I would not try to write an algebraic simplifier in XSLT since in priniciple this is as hard as writing an algebra system and it is probably the wrong implementation language - but you already seem to be on the track of using the right tools anyway. :-) Stan Devitt Ana Skupch wrote: >Hi! > >I'm looking for a way to correct/simplify mathematical expressions encoded in MathML. (content) > >The program I'm working on, should be able for example to make no difference between "x+2" and "x+1+1" and if possible also between "sin2x" and "2cosxsinx". > >For this I have been trying to find a program or an XSLT that converts MathML into other kind of mathematical markup so that I can process it afterwards. > >for example convert > ><math> > <apply> > <plus/> > <ci>x</ci> > <cn>2</cn> > </apply> ></math> > >into (x+2) > >But I haven't found anything! > >I thought of writing an XSL for myself, but I would need to convert prefix (from MathML) to infix notation and this seems pretty difficult to me. > > >These are things, that Mathematica and Maple can do. But how? > >Any idea? > >Thanks! > >Ana > >
Received on Tuesday, 8 July 2003 10:53:14 UTC