Skip to content

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).

License

Notifications You must be signed in to change notification settings

Heet-Zalavadiya/python-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-calculator

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).

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Square Root
  • Exponentiation (Power)
  • Sine (sin) – Trigonometric sine function.
  • Cosine (cos) – Trigonometric cosine function.
  • Tangent (tan) – Trigonometric tangent function.

Usage

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:

  1. Add
  2. Subtract
  3. Multiply
  4. Divide
  5. Square Root
  6. Exponentiation
  7. Sine (sin)
  8. Cosine (cos)
  9. Tangent (tan) Enter choice (1/2/3/4/5/6/7/8/9): 5 Enter number: 16 Square root: 4.0

Contributing

Contributions are welcome! If you'd like to help improve this project, you can:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Commit your changes and push them to your forked repository
  5. Create a pull request with a description of the changes you've made
  6. For more detailed contributing instructions, please see the CONTRIBUTING.md file

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

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).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages