Written some cool source code? Upload it to Programmer's Heaven.

View \EqParser.txt

Math Expression Evaluator 2

Submitted By: strongheart
Rating: (Not rated) (Rate It)


Author : Steve Strongheart
EMail : [[Email Removed]]
License:  GPL freeware and all applicable Java licensing /restrictions.
Categories : Java-Math, Utility-Math, Java-Source

Description:
A Java 2 Application to evaluate math expressions, with common math functions and constants.
It is an updated version of old "MarthExpressionParser" (mis-spelled too ~ stupid clumbsy fingers). 
(Fixed precedence of operation bug - which wrongly solved  2*3^2 as 36 instead of 18, 2*(3^2)=18 ) 
This is a no frills  command-line and gui math-expression-parser/evaluator.
The gui has an input box, output box and a status field.  A button to clear input ([x]) and one to solve/ evaluate the expression. 

Source:
The up-to-date source code is included. 

EqParser.java     - the workhorse class
EqParserFrame.java      - gui interface.
EqParserMain.java       - main class that decides weather to evaluate the command line or show the gui frame.

Release notes:
        Fixed order of precedence for '^'       -EqParser.java
        Added Modulus operator '%' ;        -EqParser.java

Help:
In this directory is ExpresionParser.html, which explains useage of the application.

Contact:
Any questions, suggestions or comments, please contact me through http://programmersheaven.com/
[[Email Removed]]

Hopefully, this app will service as a usefull tool or instructional code. 
How long before someone rates a program?


Requirements:
Java2 Runtime Environment 1.4.2 or higher is suggested, though 1.3 (or even jre1.2) may work.
This was compiled and run successfully under jdk1.4.x's, and jdk1.5.0 (this version).


Warrantees:
        None, absolutely none and your own risk. 
        That said, it should do the job expected as well as java can.
        Systems are complicated and diverse - just be carefull.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.