The calculator can be found on my website
This custom calculator application provides users with a versatile tool for performing various mathematical calculations. Users can perform basic arithmetic operations, use scientific functions, and track their calculation history. The calculator offers a user-friendly interface with support for both single and pair operations.
Versatile Calculation: Provide users with the ability to perform a wide range of mathematical operations, including basic arithmetic, scientific functions, and more.
User-Friendly Interface: Design an intuitive interface that allows users to easily input calculations and view results.
History Tracking: Implement a feature to track calculation history, enabling users to review past calculations.
Arithmetic Operations: Users can perform addition, subtraction, multiplication, and division operations on numerical inputs.
Scientific Functions: The calculator supports various scientific functions such as square root, exponentiation, logarithm, factorial, and more.
History Tracking: Calculation history is displayed in a separate area, allowing users to review past calculations and results.
HTML Structure: Defines the layout and structure of the calculator interface. CSS Styling: Enhances the visual appearance and user experience through custom styling. JavaScript (ES6+): Implements the calculator logic, including input handling, calculation processing, and history tracking.
Use numerical buttons to input numbers. Click on operation buttons to perform basic arithmetic operations. Press the "=" button to evaluate the expression and display the result. The calculation gets added to the history
Access scientific functions such as square root, exponentiation, logarithm, and factorial using buttons. Input the required values and click on the corresponding function button to perform the operation.
View past calculations and results in the history section. Click on a calculation entry to populate the calculator display with the corresponding expression and result.
Calculator Class: Implements the core calculator functionality, including arithmetic operations, scientific functions, display management, and history tracking.
Formating Class: Provides methods for formatting numerical values and expressions for display.
Preprocessing Class: Handles preprocessing of input expressions to ensure proper calculation.
History Class: Manages the display and functionality of the calculation history section.
- better code readability
- Full code documentation (currently, there is none)
- more effecient and reusable code