+ 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

13th Aug 2022, 3:41 PM
Siyabonga Mbendane
Siyabonga Mbendane - avatar
1 Odpowiedź
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!!)
6th Jan 2023, 7:52 PM
Ali M
Ali M - avatar