Skip to content

ilikeevb/MathLOL

Repository files navigation

MathLOL

MathLOL - python модуль для работы с матрицами и векторами без использования NumPy

Примеры использования модуля (Example)

from mathlol import mathlol

matrix = mathlol([[5, -2, -10], [0, -6, -2], [6, 9, 2]])

print("Матрица: ", matrix.get())

# Matrix determinant
print("Определитель матрицы: ", matrix.determinant())
# Transposed matrix
print("Транспонированная матрица: ", matrix.transposition())
# Inverse matrix
print("Обратная матрица", matrix.inverse())

# Multiply matrices
B = [[0, -1, 2], [-2, 1, 2], [2, -1, 0]]
print("Произведение матриц: ", matrix * B)

# LU разложение  (LU decomposition)
L, U = matrix.lu()
print("L: ", L)
print("U: ", L)

terminal.py - работа с матрицами в терминале

About

Module for working with matrices and vectors without NumPy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published