File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Equation Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Equation Parser" Watch "Equation Parser" New topic

Equation Parser

Rafael Afonso
Ranch Hand

Joined: Jul 16, 2002
Posts: 63
Anyone knows if there is a package (or library, or bean) to parser a mathematical equation? What I want is to do something like this:

[ September 11, 2002: Message edited by: Rafael Afonso ]

=================================<br /> Rafael U. C. Afonso<br /> <a href="" target="_blank" rel="nofollow"></a><br />=================================<br /><i>Where is debug?<br />debug is on the table</i>
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
If you can represent your equation in java syntax, you could try Bean Shell
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
I was going to post an example from the bean shell docs, but JavaRanch won't accept it - keeps telling me that I have a < or > that I am supposed to use &lt; or &gt; with but I had none of that in there. Aarrrgh!
The example is the one at
[ September 11, 2002: Message edited by: Dave Landers ]
I agree. Here's the link:
subject: Equation Parser
Similar Threads
Division problem
the world's smallest number?
Wednesday Evening Physics
Plot update error - JMathPlot
Surprisingly Complex Images Generated From Very Simple Code