Metadata-Version: 2.4
Name: calcutils_ruz_teh
Version: 0.1.3
Summary: A simple student tutorial math utility package
Author-email: Tehila Ruzindana <tehilaruzindana@gmail.com>
Maintainer-email: Tehila Ruzindana <tehilaruzindana@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/Tehila-123/calcutils
Project-URL: Repository, https://github.com/Tehila-123/calcutils
Project-URL: Issues, https://github.com/Tehila-123/calcutils/issues
Keywords: math,arithmetic,statistics,utilities,tutorial
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Dynamic: license-file

# calcutils-ruz-teh

[![Python](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

A simple student tutorial math utility package.

`calcutils-ruz-teh` provides a few small, well-documented helper functions for
everyday arithmetic and statistics. It has **no dependencies**, so it installs
cleanly into any Python 3.8+ environment.

## Installation

Install the latest release from PyPI:

```bash
pip install calcutils-ruz-teh
```

To upgrade an existing installation:

```bash
pip install --upgrade calcutils-ruz-teh
```

> **Note:** if you are working from the source repository instead of PyPI,
> install it in editable mode with `pip install -e .`

## Usage

Import the helpers directly from the package:

```python
from calcutils_ruz_teh import add, multiply, average

print(add(2, 3))              # 5
print(multiply(4, 5))         # 20
print(average([2, 4, 6, 8]))  # 5.0
```

### API

| Function | Signature | Description |
| --- | --- | --- |
| `add` | `add(a, b) -> float` | Returns the sum of two numbers. |
| `multiply` | `multiply(a, b) -> float` | Returns the product of two numbers. |
| `average` | `average(numbers) -> float` | Returns the arithmetic mean of a list of numbers. Returns `0.0` for an empty list. |

All three functions accept `int` or `float` inputs and are safe to use with
negatives, zero, and decimals.

### Example

```python
from calcutils_ruz_teh import add, multiply, average

scores = [80, 90, 70, 100]
total = add(sum(scores[:2]), sum(scores[2:]))
print(f"Total: {total}")
print(f"Best two product: {multiply(max(scores), 2)}")
print(f"Class average: {average(scores):.2f}")
```

Output:

```text
Total: 340
Best two product: 200
Class average: 85.00
```

## Requirements

- Python 3.8 or newer

## License

Released under the [MIT License](LICENSE).

## Links

- Source code: https://github.com/Tehila-123/calcutils
- Issue tracker: https://github.com/Tehila-123/calcutils/issues
