Scientific Calculator
A simple and functional scientific calculator built using HTML, CSS, and JavaScript. This calculator includes basic arithmetic operations and scientific functions such as square root, square, and trigonometric functions (sine, cosine, and tangent).
Features
- Basic arithmetic operations: addition, subtraction, multiplication, division.
- Scientific functions: square root, square, sine, cosine, tangent.
- Clear the screen with the "AC" button.
- Evaluate the expression with the "=" button.
Usage
-
Clone the repository or download the ZIP file. git clone https://github.com/yourusername/scientific-calculator.git cd scientific-calculator
-
Open the index.html file in your web browser.
Project Structure index.html
This file contains the structure of the calculator, including the display screen and the buttons for different operations.
css/style.css
This file contains the styles for the calculator, making it visually appealing and user-friendly.
js/script.js
This file contains the JavaScript code that makes the calculator functional, including handling button clicks and performing calculations.
How to Use
- Enter the numbers and operators by clicking the corresponding buttons on the calculator.
- Click the "=" button to evaluate the expression.
- Use the "AC" button to clear the screen.
- Use the scientific function buttons (
โ
,^
,sin
,cos
,tan
) for advanced calculations.