BC is an arbitrary precision calculator written in C, inspired by the GNU bc.
Note: Currently, it is using a workaround for parsing. You can perform only one operation at a time.
- GCC-11
- CMake (>=3.19)
For building the project for the first time.
mkdir <directory_name>
cd <directory_name>
cmake ..
Then for further builds, use make
in the directory created in the previous step. Refer this demo, if required.
+ |
Addition | % |
Modulo |
- |
Subtraction | ** |
Exponentiation |
* |
Multiplication | << |
Shift Left |
/ |
Division | >> |
Shift Right |
- Convert given infix expression to postfix notation to ease the task of parsing and evaluating.
- Optimising multiplication by implementing it using Karatsuba algorithm.
- Rewrite the whole project in C++, to add some additional features which can take the help of the OOP concepts.
- Use 'binary tree' data structure for expression evaluation.
Asst. Prof. Shrida Kalamkar