Closed rameswari77 closed 5 months ago
without analyzing your weirdly formatted code deeper (after putting it into executable form) I would say that something must be wrong in your Gauss elimination function:
Indeed, this tries to access matrix[4][4]
(the element in the fifth row&column) even though the passed matrix only has four rows. This has nothing to do with Manim, closing.
OK, I suggest you look at your augmented matrix - it is a 6 column 4 row matrix... you need at least 5 rows for an equation system like this, or 4 rows and 5 columns
from manim import *
class GaussianElimination(Scene): def construct(self):
Define the augmented matrix