ORB, Operations Research Bit
1 min readMay 24, 2023
Photo by Dan Cristian Pădureț on Unsplash

Professor taught Linear Algebra 18.02. Strang splitting named after Gilbert Strang is a numerical method for solving differential equations.

#ai helped write this code 
def matrix_multiplication(A, B):

if len(A[0]) != len(B):
raise ValueError("The number of columns in the first matrix must be equal to the number of rows in the second matrix.")

# Create the product matrix.
C = [[0 for _ in range(len(B[0]))] for _ in range(len(A))]

# Multiply the matrices.
for i in range(len(A)):
for j in range(len(B[0])):
for k in range(len(B)):
C[i][j] += A[i][k] * B[k][j]

return C

x, y, z = 4, 1, 2
A = [[2, 3, 4], [4, 11, 14], [2, 8, 17]]
B = [[x], [y], [z]]

C = matrix_multiplication(A, B)

ORB, Operations Research Bit

Business problems, solved. Even the edge cases. Editor of ORB, ORG and Sustainable Cities. Authors, expand your reach: https://bit.ly/write-for-orb