ORB, Operations Research Bit
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)

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

** Advertise with us! For more information email: publishoperationsresearch@gmail.com **

--

--

Operations Research Bit
Operations Research Bit

Published in Operations Research Bit

Insights and applications of OR for the everyday reader. We publish articles on how to solve problems, improve decision-making, case studies, interviews, and tutorials. Accepting writers. ORB is a commercial subsidiary of Global Institute for Optimization TM 24'

ORB, Operations Research Bit
ORB, Operations Research Bit

Written by ORB, Operations Research Bit

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