This project implements a simple Math Calculator web application.
Step 1: Develop basic arithmetic calculator, test with simple expressions, handle invalid inputs.
Step 2: Extend calculator for complex expressions, use Shunting Yard Algorithm.
Step 3: Upgrade calculator for advanced expressions, add trigonometric functions, custom tests.
- Perform basic arithmetic operations like addition, subtraction, multiplication, and division.
- Evaluate more complex expressions with parentheses and multiple operations.
- Support advanced functions such as sin, cos, tan, log, pi, e.
- Display calculation history.
- Responsive design for both desktop and mobile devices.
- Enter expressions using the calculator buttons or keyboard.
- Press the "=" button to calculate the result.
- View the calculation history on the sidebar.
index.html
: HTML file containing the calculator interface.script.js
: JavaScript file handling calculator logic and functionality.style.css
: CSS file for styling the calculator interface.images/
: Directory containing images used in the calculator interface.
No installation is required to use the Math Calculator. Simply open the index.html
file in a web browser to start using the calculator.
If you want to contribute to the project or customize the calculator further, follow these steps:
- Clone the repository to your local machine.
- Modify the HTML, JavaScript, or CSS files as needed.
- Test your changes by opening the
index.html
file in a web browser. - Commit your changes and push them to your GitHub repository.
This calculator is inspired by the Malmath web application and Coding Challenges
P.S.: I'm still working on the Calculator and History tab! 😁