Click here to Skip to main content
13,350,486 members (62,637 online)
Click here to Skip to main content
Add your own
alternative version


6 bookmarked
Posted 30 Jul 2004

Math Parther Engine

, 30 Jul 2004
Rate this:
Please Sign up or sign in to vote.
A parser that understand the mathematical equations.Just enter the equation and you will get the result
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS--><!-- Download Links --> <!-- Add the rest of your HTML here -->


First of all, This is my first programm in my entire life, so please be mercy.

This is a simple Class that have a static method that takes a string represnt a mathematical equation (some thing like "4.5+23*43.45/(sin4)^2+ln5+(2+4.6)*4^2/Asin0.5") and get the result. It simply parse the equation and tray to solve it in a logical sequence.

Notes: It solve the equation in RAD not in DEG mode.
Notes: There is a bool variable is send as (ref) to verifay that there is no error happend during the solve of the equation


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Mohammed Azmy
Web Developer
Egypt Egypt
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionFirst parser engine in C#? Pin
WillemM1-Aug-04 20:40
memberWillemM1-Aug-04 20:40 
Am I right if I say you just posted the first C# math parser engine on codeproject? (I haven't looked around yet on the site Smile | :) so I could be wrong).

Great program, maybe you could explain a little more about it in your article next time Smile | :) .

"Every rule in a world of bits and bytes can be bend or eventually be broken"
AnswerRe: First parser engine in C#? Pin
Roger J1-Aug-04 21:21
memberRoger J1-Aug-04 21:21 
AnswerFirst parser engine in HIS LIFE ! Pin
Kochise1-Aug-04 22:50
memberKochise1-Aug-04 22:50 
Generalgood work ..go on Pin
peski1-Aug-04 9:58
memberpeski1-Aug-04 9:58 
GeneralNo Pin
leppie31-Jul-04 7:19
memberleppie31-Jul-04 7:19 
GeneralRe: No Pin
Ryan Binns31-Jul-04 20:30
memberRyan Binns31-Jul-04 20:30 
GeneralRe: No Pin
leppie31-Jul-04 23:46
memberleppie31-Jul-04 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180111.1 | Last Updated 31 Jul 2004
Article Copyright 2004 by Mohammed Azmy
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid