Metadata-Version: 2.4
Name: scientific-calculator-v1
Version: 0.2.1
Summary: A Python package for a scientific calculator
Author-email: Sarif Mia <sarifmia.ofc@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/sarif-mia/scientific-calculator
Project-URL: Documentation, https://github.com/sarif-mia/scientific-calculator#readme
Project-URL: Source, https://github.com/sarif-mia/scientific-calculator
Project-URL: Tracker, https://github.com/sarif-mia/scientific-calculator/issues
Keywords: calculator,math,scientific,cli
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Scientific Calculator

A Python package for performing scientific calculations.

## Features

- Basic arithmetic operations: addition, subtraction, multiplication, division
- Scientific functions: sine, cosine, tangent, logarithm, exponential, square root, power
- Error handling for invalid inputs
- Command-line interface for easy use

## Installation

Install from PyPI:
```
pip install scientific-calculator-v1
```

Or install from source:
```
pip install .
```

## Usage

### As a Python module

```python
from scientific_calculator import ScientificCalculator

calc = ScientificCalculator()
result = calc.add(2, 3)
print(result)  # 5.0

result = calc.sin(90)
print(result)  # 1.0
```

### Command-line interface

```
scientific-calculator add 2 3
# Result: 5.0

scientific-calculator sin 90
# Result: 1.0
```

You can also run it as a module: `python -m scientific_calculator.cli add 2 3`.

## Available Operations

- `add a b`: a + b
- `subtract a b`: a - b
- `multiply a b`: a * b
- `divide a b`: a / b
- `sin x`: sin(x) in degrees
- `cos x`: cos(x) in degrees
- `tan x`: tan(x) in degrees
- `log x [base]`: log(x, base) default base 10
- `exp x`: e^x
- `sqrt x`: square root of x
- `power base exponent`: base^exponent

## License

MIT License. See [LICENSE](LICENSE).
