posted 6 years ago

Hello,

I have mathematical formulas which will be used inside java code.

Is there a way or an API to express these formulas through XML and read it from code and execute it?

The reason for this is the formulas may change at any time.

Regards,

I have mathematical formulas which will be used inside java code.

Is there a way or an API to express these formulas through XML and read it from code and execute it?

The reason for this is the formulas may change at any time.

Regards,

Vassili ...

SCJP 5.0, SCWCD 1.4, SCJA 1.0

posted 6 years ago

- 1

Here's one possible approach, using Java6 and its embedded Javascript script engine, to handle fairly complex math expressions without much DIY:

posted 6 years ago

As far as I know, the purpose of MathML is more to specify mathematical formulas so that they can be rendered in mathematical form. It's not really meant to specify formulas so that you can fill in values and "execute" (calculate) the result of the formula.