Re: If-conditions & how to evaluate mathml expressions

From: Paul Libbrecht <paul@activemath.org>
Date: Sun, 23 Apr 2006 21:13:32 +0200
Message-ID: <444BD1DC.1000802@activemath.org>
To: Jan Moeller <jmo@buerotiger.de>

```

This has been requested several times and I do not think there is a
On the one hand... you might find such interpreters around... very
possible, even java and open-source.
On the other hand, such an interpreter is bound to be incomplete or be a
full-fledged computer-algebra system which isn't that common is rather
not... light-weight...

If you just wish numerical computation, things may be different and,
actually, there's a body that just started towards standardizing
numerical evaluation (the Numerical Math Consortium [1]) of some parts
of OpenMath and MathML.
But I do not know of open-source implementations there (Scilab maybe ?).

I know there has been some discussions at Jakarta Commons Math [2]
towards this and that the consensus there is that implementations of
others should rather be used (e.g. Dautelle's Jade [3]).

Wishing you find more results!

paul

[1] Numerical Math Consortium http://www.nmconsortium.org/
[2] Jakarta Commons Math http://jakarta.apache.org/commons/math/
[3] Jade is now JScience http://jscience.org/

Jan Moeller wrote:
> Another short questions:
> I need to evaluate a MathML expression within Java. That is, I want to
> read an input stream with MathML/XML content and get back the function
> value the modelled MathML formular would evaluate to.
> This stream expresses f(x,y)=x*y^2, but I do not code the f(...) in
> MathML.
>
> I need a method to set the variables x and y (in general all
> ci-elements within the content MathML) with values and get the
> calculated value back. E.g. if x=2 and y=3, then I need a class that's
> able to take an MathML input stream & all variables and returns the
> function value (18).
>
> Does anyone know whether there's an easy way to do this? I searched
> the web, but didn't find anything. This one seems to do the other way
> (create MathML output):
>
> http://www.eteks.com/jeks/en/doc/com/eteks/parser/MathMLInterpreter.html
>
> Thank you!
>
> Jan
>
>
>
```
Received on Sunday, 23 April 2006 19:13:37 GMT

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