File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java formulas in xml format

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Karthik Shiraly
Bartender
Pie
Posts: 1058
24
Android C++ Java Linux PHP Python
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one possible approach, using Java6 and its embedded Javascript script engine, to handle fairly complex math expressions without much DIY:

 
Paul Clapham
Sheriff
Pie
Posts: 20185
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MathML is a standard way to represent mathematical formulas in XML.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic