Click here to Skip to main content
Licence 
First Posted 30 Jul 2004
Views 24,976
Bookmarked 6 times

Math Parther Engine

By | 30 Jul 2004 | Article
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

About the Author

Mohammed Azmy

Web Developer

Egypt Egypt

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionFirst parser engine in C#? PinmemberWillemM19:40 1 Aug '04  
AnswerRe: First parser engine in C#? PinmemberRoger J20:21 1 Aug '04  
AnswerFirst parser engine in HIS LIFE ! PinmemberKochise21:50 1 Aug '04  
Generalgood work ..go on Pinmemberpeski8:58 1 Aug '04  
GeneralNo Pinmemberleppie6:19 31 Jul '04  
GeneralRe: No PinmemberRyan Binns19:30 31 Jul '04  
GeneralRe: No Pinmemberleppie22:46 31 Jul '04  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.5.120517.1 | Last Updated 31 Jul 2004
Article Copyright 2004 by Mohammed Azmy
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid