[Java] Math Expression Parser 10-08-2013, 05:48 PM
#1
Hello HC,
Today I am sharing a simple math expression parser that I made. This parser can parse and evaluate math expressions.
About the Parser
This parser supports many trigonometric functions and logarithmic and some general functions like exp, sqrt, abs etc. See the snapshots and everything will be clear. See the third screenshots for examples and their output
Screenshots
![[Image: mathparser1_zps115f779f.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser1_zps115f779f.png)
![[Image: mathparser2_zps03449d3d.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser2_zps03449d3d.png)
![[Image: mathparser3_zpsddeb5dbb.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser3_zpsddeb5dbb.png)
Download
https://app.box.com/s/91j8b7wn98iqggj4yms5
Code :
https://github.com/PsychoCoderHC/MathExpressionParser
Virusscan
http://scanurl.net/?u=https%3A%2F%2Fapp....RL#results
http://onlinelinkscan.com/results/httpsa...qggj4yms5/
Instructions
You must have Java 7.
Open terminal and type :-
Note:- You must have set CLASSPATH and JAVA_HOME. If not then google for "how to set classpath in java".
Thanks to @Deque. I got references from her regarding my work.
Thank you,
Sincerely,
Psycho_Coder
Today I am sharing a simple math expression parser that I made. This parser can parse and evaluate math expressions.
About the Parser
This parser supports many trigonometric functions and logarithmic and some general functions like exp, sqrt, abs etc. See the snapshots and everything will be clear. See the third screenshots for examples and their output
Screenshots
Spoiler: Screenshots
![[Image: mathparser1_zps115f779f.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser1_zps115f779f.png)
![[Image: mathparser2_zps03449d3d.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser2_zps03449d3d.png)
![[Image: mathparser3_zpsddeb5dbb.png]](http://i1066.photobucket.com/albums/u409/UNIVERSAHACKERS/mathparser3_zpsddeb5dbb.png)
Download
https://app.box.com/s/91j8b7wn98iqggj4yms5
Code :
https://github.com/PsychoCoderHC/MathExpressionParser
Virusscan
http://scanurl.net/?u=https%3A%2F%2Fapp....RL#results
http://onlinelinkscan.com/results/httpsa...qggj4yms5/
Instructions
You must have Java 7.
Open terminal and type :-
Code:
java -jar MathExpressionParser.jarNote:- You must have set CLASSPATH and JAVA_HOME. If not then google for "how to set classpath in java".
Thanks to @Deque. I got references from her regarding my work.
Thank you,
Sincerely,
Psycho_Coder
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)