A tool for solving problems invloving matrix and vector
Project description
AlgebraCalculator
By Moli
![]()
![]()
Install
# Windows
py -3 -m pip install algebraCalc
Data Format
Matrix
a = [[a11, a12, a13],
[a21, a22, a23],
[a31, a32, a33]] #where the value of the element is either int or float
#You can adjust the number of column and row, just make sure the length of the list is same each other
Vector
a = [[a11, a12, a13]] #where the value of the element is either int or float
#a11 represent the value of i, a12 represent the value of j, a13 represent the value of k
Frequently used function
Matrix multiplication
import algebraCalc
a = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
b = [[1],
[2],
[3]]
print(algebraCalc.multiplication(a, b))
# Output: [[14], [32], [50]]
Dot product
import algebraCalc
a = [[1, 2, 2]]
b = [[4, 5, 6]]
print(algebraCalc.dot(a, b))
# Output: 26
Function List
add(a, b) #return a matrix when matrix a and matrix b is added
det(a) #return the determinant of matrix a
inverse(a) #return the inverse of matrix a
adjoint(a) #return the adjoint matrix by matrix a
multiplication(a, b) #return a matrix when matrix a is multiplied by matrix b
transpose(a, b) #return a transpose matrix of a
dot(a, b) #return the dot product of vector a and vector b
cross(a, b) #return the cross product of vector a and vector b
angle(a, b) #return the angle between vector a and vector b
projection(a, b) #return the projection vector when vector a is projected onto vector b
scale(a, k) #return a matrix when a is multiplied by scalar k
printMatrix(a) #print matrix a
printVector(a) #print vector a
randomMatrix(row, col, min, max) #return a matrix with dimension row * col and random value at min to max
randomVector(min, max) #return a vector with random value at min to max
solveSystem(a, b) #return the solution of the system with matrix a as the coefficient matrix and b be the constant term matrix
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 algebraCalc-1.0.4.post1.tar.gz.
File metadata
- Download URL: algebraCalc-1.0.4.post1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
917906efa45161488f2c80c3ace2c348c3957542850ac69664cee2e98dda0c6f
|
|
| MD5 |
579d0e070ba259d7377cbbea7050cbdc
|
|
| BLAKE2b-256 |
f3ec1455cf70077b3dea94ea7dec4ce52e5f1425dbc60ca3b8b125ff3b1148f3
|
File details
Details for the file algebraCalc-1.0.4.post1-py3-none-any.whl.
File metadata
- Download URL: algebraCalc-1.0.4.post1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1e12acaba779d4e88273ac497af2777df466c4ca26f4c7596aa821e7154700
|
|
| MD5 |
614e0a2f90b90bc59aa3ce8e4478ae6c
|
|
| BLAKE2b-256 |
484e00f2d433e36c87c194d54179e88bee6e2ecf71b6ae0c1e2a233a2f191441
|