A fully functional Python-based Scientific Calculator with a modern GUI built using Tkinter. Supports standard and scientific operations including trigonometry, logarithms, powers, and square roots.
- Basic arithmetic operations:
+,-,*,/ - Advanced operations:
^(power),√(square root) - Trigonometric functions:
sin,cos,tan(angle in degrees) - Logarithmic functions:
log(base 10),ln(natural log) - Constant support:
π - Clear (
C) button for resetting input - Safe expression evaluation to prevent unsafe code execution
- Modern, dark-themed GUI with responsive buttons
Ensure you have Python 3.x installed. Then, follow these steps:
# Clone the repository
https://github.com/C0ding-Craze/Scientific-calculator-with-GUI.git
Tkinter comes pre-installed with most Python distributions. No additional packages are strictly required.
Run the calculator with:
python main.pyOnce the GUI opens, you can:
- Enter numbers and operators using the buttons.
- Perform operations like
√,^,sin,cos,tan,log,ln. - Press
=to evaluate the expression. - Press
Cto clear the input.
This project is licensed under the MIT License. See the LICENSE file for details.
