A CLI based advanced calculator with scientific operations.
Project description
🧮 Advanced Calculator (CLI)
A Command-Line Advanced Calculator built in Python that supports both basic and scientific mathematical operations.
🚀 Features ✅ Basic Operations
Addition
Subtraction
Multiplication
Division
✅ Scientific Operations
Square Root
Power
Natural Logarithm (ln)
Sine (Degrees)
Cosine (Degrees)
Factorial
✅ Error Handling
Prevents division by zero
Prevents square root of negative numbers
Prevents logarithm of non-positive numbers
Factorial works only for non-negative integers
📦 Installation
Install from PyPI:
pip install advanced-calculator-prashant
▶️ Usage
After installation, run:
advcalc
You will see the calculator menu in your terminal. Enter the number corresponding to the operation and follow the prompts.
🛠 Example
Addition Example
Enter your choice: 1 Enter first number: 10 Enter second number: 5 Result: 15
Factorial Example
Enter your choice: 10 Enter number: 5 Result: 120
🐍 Requirements
Python 3.8 or higher
📁 Project Structure MATH_CAL_PACKAGE/ │ ├── mathcal/ │ ├── init.py │ └── main.py │ ├── setup.py └── README.md
📄 License
MIT License
👨💻 Author
Prashant Rai
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file advanced_calculator_prashant-0.2.0.tar.gz.
File metadata
- Download URL: advanced_calculator_prashant-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17be24ef0e503aed8fe8097b391109960eb64fc76b562935165a93ec935a7e3e
|
|
| MD5 |
a2d299d779992bfb7d3b8593fc0170cb
|
|
| BLAKE2b-256 |
2d17ae53e2e7e9544bb1e36b5e369fdc174f15492176c2323897d522c8b95230
|
File details
Details for the file advanced_calculator_prashant-0.2.0-py3-none-any.whl.
File metadata
- Download URL: advanced_calculator_prashant-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bfdfbebd8c63a69a9fdb8d7ef71b46bfc54d23991079647df744b2972438e51
|
|
| MD5 |
d2ccc8b2627cb9a864cb151d7834ac9f
|
|
| BLAKE2b-256 |
2566b36b45473f126dda78807e9819b6a3c0c674c1d528972566d4727e0473a8
|