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

RE: correct/simplify Content MathML

From: Eduardo Tabacman <eduardot@dessci.com>
Date: Tue, 8 Jul 2003 08:22:56 -0700
Message-ID: <46566A3075DDD311969100E0811031EC01583141@euclid.dessci>
To: Ana Skupch <anaskupch@cecilija.zesoi.fer.hr>
Cc: www-math@w3.org


> 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".

If all you want is to compare expressions to decide whether they are really
the same or not, there is a simple idea that I think is also pretty useful:
It shouldn't be too hard to implement a numerical evaluation of the
expression at some points (since it is content markup.) Then you can
evaluate the expressions at many points, and compare the results. Almost
anything you can write is analytic, so if they agree on many points, chances
are they are the same function.

Since you are using WebEQ controls already, I should mention that there is
now a "Comparator" one that implements what I described. But, again, you can
also implement your own to make sure it fits your needs.


Eduardo Tabacman
Design Science
Received on Tuesday, 8 July 2003 11:22:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:34 UTC