Skip to content

MixMasterT/react_calculator

Repository files navigation

React Calculator

example calculation

RPN Type Calculation

This calculator is run with two stacks, one for operations and one for calculation arguments. This architecture takes care of order-of-operations with minimal effort.

Future Developments

Currently unary operators pop everything off of both stacks, and then execute. This means running a unary operator is equivalent to hitting the equals sign, and then running it. In the future, I plan to factor that out to allow unary operators to be used inline on a single argument.

Also, I plan to add additional calculations such as nth-root and logarithms.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages