Commits

Serj Zavadsky committed d883a80

gauss pretty print result

  • Participants
  • Parent commits 0ffedd8

Comments (0)

Files changed (1)

 from copy import deepcopy
 from decimal import Decimal
 from common import get_equations, print_matrix
-from krammer import determinant
 
 
 def swap_lines(matrix, line_number1, line_number2):
 if __name__ == '__main__':
     matrix = get_equations()
 
-    print gauss(matrix)
+    x_list = gauss(matrix)
+    for i, x in enumerate(x_list):
+        print('x%s = %f' % (i, x))