65.9K
CodeProject is changing. Read more.
Home

Math Parther Engine

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.15/5 (9 votes)

Jul 31, 2004

viewsIcon

34522

downloadIcon

444

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