Answered step by step
Verified Expert Solution
Question
1 Approved Answer
inconsistency in python. I'm trying to implement a function for gaussian elimination. This function should test if the matrix is inconsisten or consistent. We assume
inconsistency in python.
I'm trying to implement a function for gaussian elimination.
This function should test if the matrix is inconsisten or consistent.
We assume that the input is in echelon form so we don't need to worry about fowardElimination.
How can i loop through to and check that given row is all zeros ?
This is what i have so far..
def inconsistentSystem(A): """ B is assumed to be in echelon form; return True if it represents an inconsistent system, and False otherwise """ a = A.copy() m, n = np.shape(a) for r in range(m-1): for c in range(r,m): for k in range(r, n): if(a[c][k] == 0 )
Step 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