Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Im trying to solve a matrix where: a= [[2 0], [0 2], [1 1]] b= [[0], [0], [0]] I am using numpy to solve this
Im trying to solve a matrix where:
a= [[2 0], [0 2], [1 1]]
b= [[0], [0], [0]]
I am using numpy to solve this matrix. The matrix is supposed to balance a chemical equation in this case it is H2 + O2 ---> H2O
My main error is last 2 dimensions of the array must be square
Traceback (most recent call last): File "/Users/parsa/Desktop/A2/Reactiont.py", line 152, inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started