+ 1
Guassian elimination with pivoting
Can someone help me, I need my function to also do pivoting and for infinite solutions(return 1) and for no solution(return 0) I can't figure it out I have a presentation Monday and i might not be able make a proper one, please help https://code.sololearn.com/c3N9PuIfrg3X/?ref=app
1 Answer
0
first of all you shall "import math"
then at the end....
return int(x==math.inf)
if x is infinity then you will get True then int of True will return 1.
if x is Flase you will return 0 (i didn't use it before tho) and one more thing, you shall call your function (i saw your code, and u didn't call the function!!)