Skip to main content

A comprehensive mathematics utility library

Project description

Math Utils

A comprehensive mathematics utility library for Python.

Installation

pip install math-utils-john

Features

Basic Operations

Fibonacci sequence Prime number checking Factorial calculation Number operations Statistics

Mean, median, mode Standard deviation Variance Geometry

Area calculations Volume calculations Pythagorean theorem Usage Examples

from math_utils import fibonacci, is_prime
from math_utils.statistics import mean, median
from math_utils.geometry import circle_area, triangle_area

# Basic operations
print(fibonacci(10))  # 55
print(is_prime(17))   # True

# Statistics
data = [1, 2, 3, 4, 5]
print(mean(data))     # 3.0
print(median(data))   # 3

# Geometry
print(circle_area(5))      # 78.53981633974483
print(triangle_area(3, 4)) # 6.0

License

Features

LICENSE

MIT License

Copyright (c) 2024 John Doe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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

math_utils_john-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

math_utils_john-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file math_utils_john-1.0.0.tar.gz.

File metadata

  • Download URL: math_utils_john-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for math_utils_john-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6132a0c2f985ba70682b3ce8d3abf5af23de2039e888d4fc058ed164992fae25
MD5 51897db718d0afe07bdd8a7fd044d10d
BLAKE2b-256 c56aed9551febf50f9efe91ea169eeb45b43023d4c0c36240d9cbef00bf22432

See more details on using hashes here.

File details

Details for the file math_utils_john-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for math_utils_john-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d602885812325152732e38309e9009b2af7ac1df143c13e88ffb6e188c2588c
MD5 87cf5cd296798a89b3b3de93573df1c9
BLAKE2b-256 16742bde123708b05ad120b70c01b37de2d287fa3caf8def441a8231ee990ac3

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