A simple and clean scientific calculator implemented using HTML, CSS, and JavaScript. It is fully responsive and provides a variety of mathematical operations and functions, including basic arithmetic, complex operations, trigonometric functions, and more. The layout is designed to work well on both desktop and mobile devices.
- Basic Operations: Addition, subtraction, multiplication, and division.
- Complex Functions: Logarithmic functions, square roots, trigonometric operations (sin, cos, tan).
- Advanced Functions: Factorial, power, pi, and more.
- Responsive Layout: Adjusts to different screen sizes (including mobile devices).
- User-friendly Interface: Simple, clean, and easy-to-use design.
To use this calculator, simply clone or download the repository and open the index.html
file in a browser.
- Clone or download the repository:
git clone https://github.com/GZ30eee/scientific-calculator.git
- Open the
index.html
file in your web browser.
No server or additional setup is required.
- Basic Calculation: Use the number buttons (0-9) to input numbers, and use the operation buttons (+, -, *, /) to perform calculations.
- Advanced Operations: Use functions like
ln
(logarithm),√
(square root), andx^2
(square) for more advanced calculations. - Trigonometric Functions: Use
sin
,cos
, andtan
to perform trigonometric calculations. - Memory Functions: The
C
button clears the screen.
- To calculate
3 + 5
, click the buttons3
,+
, and5
, and then click=
. - For
sin(30)
, clicksin
, then3
,0
, and click=
. - To calculate square root of 25, click
√
, then2
,5
, and click=
.
The calculator has been styled using custom CSS. It uses a clean and minimalistic design with rounded corners, padding, and subtle hover effects.
The layout is fully responsive, meaning it adapts to various screen sizes (desktop, tablets, and mobile devices). The calculator input and buttons are sized appropriately for different devices.
You can easily customize the look and feel of the calculator by modifying the CSS styles in the style.css
file.
- HTML: Structure of the calculator.
- CSS: Styling of the calculator layout.
- JavaScript: Functionality for calculator operations.
- Bootstrap: Used for responsive grid layout (optional, if needed for mobile support).
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to fork the repository and submit pull requests. If you find any bugs or want to suggest new features, please open an issue in the GitHub repository.