Skip to main content

PyMathTools

A really simple Python library to do some math operations
PyPi page: https://pypi.org/project/pymathtools/

Installation

To install the library, run the following command:

pip install pymathtools

To import it in a script, add the following line:

from pymathtools import *

Commands

This package includes the following commands/functions:
isprime(primenum)
Checks if a number is prime. Takes in a integer and returns a bool True/False

prime = isprime(17) # Using 17 as an example
print(prime)

Response:

True

rectanglearea(area1, area2)

rectanglearea = rectanglearea(7, 4)
print(rectanglearea)

Response:

28

trianglearea(area1, area2)

trianglearea = trianglearea(6, 3)
print(trianglearea)

Response:

9.0

squarearea(area1)

squarearea = squarearea(7)
print(squarearea)

Response:

49

cubevolume(length, width, height)

cubevolume = cubevolume(3, 4, 7)
print(cubevolume)

Response:

49

triangleperimeter(side1, side2, side3)

triangle = triangleperimeter(3, 4, 10)
print(triangle)

Response:

17

squareperimeter(side1)

square = squareperimeter(410)
print(square)

Response:

1640

parallelogramperimeter(side1, side2)

parallelogram = parallelogramperimeter(10, 410)
print(parallelogram)

Response:

840

circlediameter(radius)

circlediam = circlediameter(14)
print(circle)

Response:

28

circlearea(radius)

circlearea = circlearea(17)
print(circlearea)

Response:

907.46

mathmean(sum, number)

mathmean = mathmean(sum, number)

Metadata

Release files for pymathtools 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymathtools 1.1
File Size Uploaded Provenance Actions
pymathtools-1.1.tar.gz 3.3 kB Without provenance Details for pymathtools-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymathtools 1.1
File Interpreter ABI Platform Actions
pymathtools-1.1-py3-none-any.whl Python 3 none any Details for pymathtools-1.1-py3-none-any.whl

Total release size: 6.7 kB

Release files / pymathtools-1.1.tar.gz

Download URL pymathtools-1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7010850020901aa7d6d430932e944bed2d992ec33186e409d1fa688bdcf9ec3e
BLAKE2b-256 checksum
How to use checksums
754d59025ac023887c9d9f410e17f0931930305eed714b55f66b6e834f2e3697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Release files / pymathtools-1.1-py3-none-any.whl

Download URL pymathtools-1.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbed6bbfcd974f8d33b933212b3befe4540e912814c90b1ba81058b2871cfef1
BLAKE2b-256 checksum
How to use checksums
a124b4d682b225872a495e87faf7e9ee28b4e18484da9a52c4339befa763c3ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Security for pymathtools 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page