A simple and easy-to-use my First Python-based calculator project that supports basic arithmetic operations (addition, subtraction, multiplication, division), along with advanced mathematical functions such as square roots, exponentiation, and trigonometric functions (sin, cos, tan).
- Addition
- Subtraction
- Multiplication
- Division
- Square Root
- Exponentiation (Power)
- Sine (sin) – Trigonometric sine function.
- Cosine (cos) – Trigonometric cosine function.
- Tangent (tan) – Trigonometric tangent function.
Run the script calculator.py. The program will display a menu with options for different operations. Choose an operation by entering the corresponding number. Follow the prompts to enter the numbers and receive the result. Example Usage:
Select operation:
- Add
- Subtract
- Multiply
- Divide
- Square Root
- Exponentiation
- Sine (sin)
- Cosine (cos)
- Tangent (tan) Enter choice (1/2/3/4/5/6/7/8/9): 5 Enter number: 16 Square root: 4.0
Contributions are welcome! If you'd like to help improve this project, you can:
- Fork the repository
- Create a new branch
- Make your changes
- Commit your changes and push them to your forked repository
- Create a pull request with a description of the changes you've made
- For more detailed contributing instructions, please see the CONTRIBUTING.md file
This project is licensed under the MIT License - see the LICENSE file for details.