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

Update

Improved solveSystem function's algorithm


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.5.tar.gz (5.4 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.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file algebraCalc-1.0.5.tar.gz.

File metadata

  • Download URL: algebraCalc-1.0.5.tar.gz
  • Upload date:
  • Size: 5.4 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.5.tar.gz
Algorithm Hash digest
SHA256 a384114bf79e7eca06ae2cc27b06e79dc222dbe00992ed2a5fa37ad933bbd1b8
MD5 fb517c1ee34575295eebd1be6702d17f
BLAKE2b-256 ded7ac406abfcf47234869d9a72dbf6fc05f9c3f1c292aa079d775cc75b7e09e

See more details on using hashes here.

File details

Details for the file algebraCalc-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: algebraCalc-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for algebraCalc-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e0df92c2a251c72eeef62b3f294c91157fa111deed1ee70feefe1d3987e3d7b6
MD5 70b1ea441b8e7037b2343ac98e8c9837
BLAKE2b-256 b0656ab66f544d9cf3ba4a3e34f20c41cbb130933068187b34d109ef80186240

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