W3C home > Mailing lists > Public > www-math@w3.org > July 2003

correct/simplify Content MathML

From: Ana Skupch <anaskupch@cecilija.zesoi.fer.hr>
Date: Tue, 8 Jul 2003 13:55:50 +0200
Message-ID: <000d01c34547$e0915000$e14035a1@zesoi.fer.hr>
To: <www-math@w3.org>
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 07:57:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:55 GMT