Friday, June 19, 2015

Math Expression Evaluator Using c#

3:53 AM - By azeheruddin khan 0

In this example I have demonstrated how we can use NCal to evaluate Math expression during run time. This library is very simple to implement in .Net projects. It comes up with lot of inbuilt functions but as per your requirement you can create your own function and call during run time.

Follow below steps to implement the logic in your project

1. Download NCal DLL from
2. Add DLL reference in your project 
3. Pass expression string during initializing of Expression Class.
4. Call Evaluate function that will return the result.

You can download complete source code from here download

About the Author

I am Azeheruddin Khan having more than 6 year experience in c#, and ms sql.My work comprise of medium and enterprise level projects using and other Microsoft .net technologies. Please feel free to contact me for any queries via posting comments on my blog,i will try to reply as early as possible. Follow me @fresher2programmer
View all posts by admin →

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post



© 2014 Fresher2Programmer. WP Theme-junkie converted by Bloggertheme9
Powered by Blogger.
back to top