Skip to main content

A tool for solving problems invloving matrix and vector

Project description

AlgebraCalculator

By Moli

Static Badge Static Badge Static Badge


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algebraCalc-1.0.4.post1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

algebraCalc-1.0.4.post1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for algebraCalc-1.0.4.post1.tar.gz
Algorithm Hash digest
SHA256 917906efa45161488f2c80c3ace2c348c3957542850ac69664cee2e98dda0c6f
MD5 579d0e070ba259d7377cbbea7050cbdc
BLAKE2b-256 f3ec1455cf70077b3dea94ea7dec4ce52e5f1425dbc60ca3b8b125ff3b1148f3

See more details on using hashes here.

File details

Details for the file algebraCalc-1.0.4.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for algebraCalc-1.0.4.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1e12acaba779d4e88273ac497af2777df466c4ca26f4c7596aa821e7154700
MD5 614e0a2f90b90bc59aa3ce8e4478ae6c
BLAKE2b-256 484e00f2d433e36c87c194d54179e88bee6e2ecf71b6ae0c1e2a233a2f191441

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