Skip to content

sobiasalamat/scientific_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧮 Scientific Calculator – Python

A console-based Python calculator that performs standard arithmetic and scientific operations. It allows users to perform addition, subtraction, multiplication, division, exponentiation, square roots, and more—all from the command line.


🚀 About

This Scientific Calculator project is designed for beginners to practice Python programming while building a functional tool. It supports both basic arithmetic operations and some advanced mathematical functions, making it a great learning exercise in Python logic, functions, and input handling.


🛠️ Features

• Basic arithmetic operations: addition, subtraction, multiplication, division • Scientific functions: exponentiation, square roots, factorial, logarithms, trigonometric functions (sin, cos, tan) • User-friendly console interface with menus • Input validation to prevent errors • Performs multiple calculations in a single session


🧰 Built With

🐍 Python 🖥️ Command-Line Interface 📐 math module


🚀 Getting Started

✔️ Prerequisites Make sure Python 3 is installed on your machine.

📥 Install & Run

  1. Clone the repository:
git clone https://github.com/your-username/scientific-calculator.git
  1. Open the project folder:
cd scientific-calculator
  1. Run the program:
python main.py

(Replace main.py with your file name if different.)


📖 Usage

  1. Run the program.
  2. Select an operation from the menu (e.g., addition, subtraction, square root, sin).
  3. Enter the required number(s) when prompted.
  4. View the result and choose to perform another calculation or exit.

🧪 Example

Select operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Square Root
6. Exponent
7. Factorial
8. Sin
9. Cos
10. Tan
> 1
Enter first number: 10
Enter second number: 5
Result: 15

🖋️ Contributing

Contributions are welcome! You can: • Add more scientific operations • Improve the menu interface • Add error handling for edge cases • Enhance documentation

Feel free to open an issue or submit a pull request.


📜 License

This project is open-source and free to use for learning and practice.


📌 Notes

• This calculator is intended for educational purposes and beginner practice. • Designed as a console application for Python learning.

Do you want me to do that?

About

A menu-driven scientific calculator built in Python using modular programming. It supports basic and advanced mathematical operations, trigonometric and logarithmic functions, error handling, and a memory feature, with all operations separated into reusable functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages