Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

advanced_calculator_prashant-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

advanced_calculator_prashant-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file advanced_calculator_prashant-0.2.0.tar.gz.

File metadata

File hashes

Hashes for advanced_calculator_prashant-0.2.0.tar.gz
Algorithm Hash digest
SHA256 17be24ef0e503aed8fe8097b391109960eb64fc76b562935165a93ec935a7e3e
MD5 a2d299d779992bfb7d3b8593fc0170cb
BLAKE2b-256 2d17ae53e2e7e9544bb1e36b5e369fdc174f15492176c2323897d522c8b95230

See more details on using hashes here.

File details

Details for the file advanced_calculator_prashant-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for advanced_calculator_prashant-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bfdfbebd8c63a69a9fdb8d7ef71b46bfc54d23991079647df744b2972438e51
MD5 d2ccc8b2627cb9a864cb151d7834ac9f
BLAKE2b-256 2566b36b45473f126dda78807e9819b6a3c0c674c1d528972566d4727e0473a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page