This JavaScript web-based calculator lets users execute fundamental mathematical operations such as addition, subtraction, multiplication, and division. Special operations such as square root, reciprocal, and percentage computations are also included. For improved use, the calculator has a graphical user interface (GUI) for input and output, as well as keyboard input.
- Addition, subtraction, multiplication, and division are the four basic arithmetic operations.
- Special operations (square root, reciprocal, percentage) are available.
- Support for keyboard input
- Handling division by zero and incorrect input errors
- Display of computation history
- History log with a toggle
For improved usability, the calculator accepts keyboard input. The keyboard allows users to enter numbers, carry out operations, and monitor the history of calculations. There are the following keyboard shortcuts available:
- Numbers (0-9) and decimal point (.)
- Basic operations (+, -, *, /)
- Special operations (1/𝑥, 𝑥², √𝑥)
- Enter or the equals sign (=) to calculate
- Backspace will remove the previous character.
- Escape key to clear the calculator
- The tab key cannot be used.
Feel free to make a pull request.