Skip to content

C# unit tested extensible calculator core + WPF Graphical User Interface for it.

Notifications You must be signed in to change notification settings

djlastnight/ExtensibleCalculator

Repository files navigation

Support me on Patreon

Click here to become a patron and get your reward!

djlastnight's Calculator

alt text

The core provides experimental math expression parser.

Usage example:
double result = CalculatorCore.Operations.Compute("(negate(sqrt(123.4) * 5.678 - 910 + 11.12) ^ 13.14) / -15.1617");

You can easily add new custom math operators and functions to it. They are defined at Custom.cs.

Currently all the user defined operators has equal (but higher than the 'standard' operators like '+', '-', '*', '/') precedence. They could be left (not tested) or right associative.

Currently the WPF app supports keyboard input for the 'standard' operators and the digits.
Try it now!

djlastnight, 2018

About

C# unit tested extensible calculator core + WPF Graphical User Interface for it.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages