Click here to Skip to main content
15,881,173 members
Articles / Programming Languages / C#
Article

Math Parther Engine

Rate me:
Please Sign up or sign in to vote.
1.15/5 (9 votes)
30 Jul 2004 33.9K   443   6   7
A parser that understand the mathematical equations.Just enter the equation and you will get the result

Introduction

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

License

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


Written By
Web Developer
Egypt Egypt
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionFirst parser engine in C#? Pin
WillemM1-Aug-04 19:40
WillemM1-Aug-04 19:40 
AnswerRe: First parser engine in C#? Pin
Roger Alsing1-Aug-04 20:21
Roger Alsing1-Aug-04 20:21 
AnswerFirst parser engine in HIS LIFE ! Pin
Kochise1-Aug-04 21:50
Kochise1-Aug-04 21:50 
Generalgood work ..go on Pin
peski1-Aug-04 8:58
peski1-Aug-04 8:58 
GeneralNo Pin
leppie31-Jul-04 6:19
leppie31-Jul-04 6:19 
GeneralRe: No Pin
Ryan Binns31-Jul-04 19:30
Ryan Binns31-Jul-04 19:30 
GeneralRe: No Pin
leppie31-Jul-04 22:46
leppie31-Jul-04 22: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.