This is a simple calculator application built using Python's Tkinter library. It provides basic arithmetic operations, square root calculation, and trigonometric calculations for sine, cosine, and tangent.
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Square Root (√)
- Exponentiation (^)
- Trigonometric calculations (sine, cosine, tangent)
- Clear entry (C)
- Enter numerical values using the numeric keypad.
- Use the arithmetic operator buttons to perform calculations.
- Press the "=" button to evaluate the expression and display the result.
- To calculate the square root of a number, enter the number and click the "√" button.
- To perform exponentiation, enter the base, followed by the "^" button, and then the exponent.
- To perform trigonometric calculations, enter the angle in degrees and click the "trig" button.
- Press the "C" button to clear the entry field.
- Python 3.x
- Tkinter (usually included with Python)
- Clone or download this repository to your local machine.
- Open a terminal or command prompt.
- Navigate to the directory where the
calculator_app.py
file is located. - Run the following command:
- The calculator application window will appear.
- This calculator does not have parentheses for complex expressions.
- Use "^" for exponentiation, e.g., "2^3" for 2 raised to the power of 3.
- Trigonometric calculations provide the sine, cosine, and tangent values in radians.
- Square root can only be calculated for non-negative numbers.
- Chathura Abeygunawardhana