number theory, and matrix operations. The package is designed to simplify calculations for common use cases, including arithmetic, statistical analysis, combinatorics, and linear algebra.
Project description
Math and Matrix Operations
This Python package provides a collection of functions for basic mathematical operations, statistical computations, number theory, and matrix operations. The package is designed to simplify calculations for common use cases, including arithmetic, statistical analysis, combinatorics, and linear algebra.
Features
Basic Operations
add(a, b): Returns the sum ofaandb.sub(a, b): Returns the difference ofaandb.mul(a, b): Returns the product ofaandb.div(a, b): Returns the division ofabyb. Raises aValueErrorifbis zero.
Statistical Operations
maximum(a): Returns the maximum value in the arraya.minimum(a): Returns the minimum value in the arraya.mean(a): Returns the mean (average) of the arraya.median(a): Returns the median of the arraya.mode(a): Returns the most frequent element in the arraya.variance(a): Returns the variance of the arraya.
Number Theory
gcd(a, b): Returns the greatest common divisor ofaandb.lcm(a, b): Returns the least common multiple ofaandb.isprime(n): Checks ifnis a prime number.primes(n): Returns all prime numbers less than or equal ton.factors(n): Returns the factors ofn.factorial(n): Returns the factorial ofn.permutation(n, r): Returns the number of permutations ofnobjects takenrat a time.combination(n, r): Returns the number of combinations ofnobjects takenrat a time.
Array Operations
subarray(arr): Returns all possible subarrays of the arrayarr.
Matrix Operations
transpose(matrix): Returns the transpose of a matrix.determinant(matrix): Returns the determinant of a matrix.inverse(matrix): Returns the inverse of a matrix. Raises aValueErrorif the matrix is not invertible.dotproduct(a, b): Returns the dot product of two vectorsaandb.
Installation
You can install this package using pip:
pip install easetools
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easetools-0.2.tar.gz.
File metadata
- Download URL: easetools-0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6873a0db687adf7b55b4466ce7a4862d3c54c0942c7371802fb494e1eb4ecbef
|
|
| MD5 |
23f1209073dedda9961c8c22ffe6245e
|
|
| BLAKE2b-256 |
0c504a508552b3b7b3b668023a8d45bf312b460e217ae5dc156f6dc74dd25ac8
|
File details
Details for the file easetools-0.2-py3-none-any.whl.
File metadata
- Download URL: easetools-0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6c6d27a02c2f317c8da8d8c2abe6e6703a3bbd8da9a4bac269ca3d5cfaf5d8
|
|
| MD5 |
6d96cfcce0087b627a2fc17bc8253bb3
|
|
| BLAKE2b-256 |
e12bf6a3dbc16ca923c3023d222348698446c948a295fe2e901a0b9a77308768
|