Skip to main content

A simple utility package for mathematical operations

Project description

MathUtils

A simple Python package providing basic mathematical utilities.

Features

  • Arithmetic Operations: Basic functions like add, subtract, multiply, and divide
  • Statistical Functions: Calculate mean, median, mode, and standard deviation
  • Vector Operations: Perform dot product, cross product, and calculate vector magnitude

Installation

You can install the package from PyPI:

pip install arunmoorthy-mathutils

Or install directly from the repository:

git clone https://github.com/yourusername/mathutils.git
cd mathutils
pip install -e .

Quick Start

import mathutils

# Arithmetic
result = mathutils.add(5, 3)  # 8

# Statistics
data = [1, 2, 3, 4, 5]
avg = mathutils.mean(data)  # 3.0

# Vectors
v1 = [1, 2, 3]
v2 = [4, 5, 6]
dot = mathutils.dot_product(v1, v2)  # 32

For more examples, check the examples directory.

Documentation

For detailed documentation, see the docs directory or visit our documentation site.

Development

Prerequisites

  • Python 3.7 or higher

Setting up the development environment

# Clone the repository
git clone https://github.com/yourusername/mathutils.git
cd mathutils

# Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install development dependencies
pip install -e ".[dev]"

Running tests

pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

arunmoorthy_mathutils-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

arunmoorthy_mathutils-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file arunmoorthy_mathutils-0.1.0.tar.gz.

File metadata

  • Download URL: arunmoorthy_mathutils-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for arunmoorthy_mathutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b96e226ff3bf2b28481ddc191ac716707a43930ca448b22160d58fff287fce9d
MD5 9a9f5835c64eb25861809051c166cd7a
BLAKE2b-256 cc760ed9835d2b708f1b99f74cf1cdc6ed14fbedd8066a096239ab7d91f0ce5c

See more details on using hashes here.

File details

Details for the file arunmoorthy_mathutils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for arunmoorthy_mathutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea4d6b42ff2197dad691be352818b7270b326b53826941a33889e306726b606d
MD5 afecdec65593baea1d8c29071686e457
BLAKE2b-256 686fd3cb3c3e41eb0a5453ff7a59d3e314be3e0aaa76c091564879ce2b2e47f9

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