1 min readMay 24, 2023

**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)

print(C)

From ORB | Subscribe to get updates | Writing course | PuLP Guide

OptiSage AI: Guide for LLMs and AI. How Do We Talk with Them?

Everland affiliate link for a 60-day trial, with over half a million titles