Calculator.NET - Calculator that evaluates math expressions
C# Other
Latest commit 1fa10c3 Jul 8, 2016 @pwelter34 pwelter34 committed on GitHub Merge pull request #2 from gap777/master
Added support for binary math functions
Permalink
Failed to load latest commit information.
Deploy add LICENSE info Jul 9, 2015
Documentation - fix line ends Jun 9, 2015
Source Adding "round" function to library. Jun 30, 2016
.gitattributes
.gitignore
LICENSE
Master.proj - fix line ends Jun 9, 2015
appveyor.yml
bootstrap.cmd Create Build Dec 24, 2014
calculator.png - fix line ends Jun 9, 2015
readme.md

readme.md

Calculator.NET

Calculator.NET - Calculator that evaluates math expressions

Build Status

GitHub Release

Github Releases

The library supports math expressions, functions unit conversion and variables. Below are some examples of using the library directly.

MathEvaluator eval = new MathEvaluator();
//basic math
double result = eval.Evaluate("(2 + 1) * (1 + 2)");
//calling a function
result = eval.Evaluate("sqrt(4)");
//evaluate trigonometric 
result = eval.Evaluate("cos(pi * 45 / 180.0)");
//convert inches to feet
result = eval.Evaluate("12 [in->ft]");
//use variable
result = eval.Evaluate("answer * 10");
//add variable
eval.Variables.Add("x", 10);
result = eval.Evaluate("x * 10");

Calculator that evaluates math expressions.

Calculator.NET

Calculator.NET Features

  • Evaluate math expressions including grouping
  • Support trigonometry and other function
  • Common unit conversion of the following types
    • Length
    • Mass
    • Speed
    • Temperature
    • Time
    • Volume
  • Variable support including last answer