add logging
This commit is contained in:
@@ -282,7 +282,13 @@ class MainWindow(QMainWindow):
|
|||||||
self.set_matrix(self.matrix_a, self.matrix_b)
|
self.set_matrix(self.matrix_a, self.matrix_b)
|
||||||
|
|
||||||
def on_find_solution_clicked(self):
|
def on_find_solution_clicked(self):
|
||||||
|
try:
|
||||||
|
print(f"Numpy solution: {np.linalg.solve(self.matrix_a, self.matrix_b)}")
|
||||||
|
except:
|
||||||
|
print("Numpy could not solve the system")
|
||||||
|
|
||||||
x = solution.iterative_method(self.matrix_a, self.matrix_b)
|
x = solution.iterative_method(self.matrix_a, self.matrix_b)
|
||||||
|
print(f"Iterative solution: {x}")
|
||||||
|
|
||||||
if x is None:
|
if x is None:
|
||||||
self.solution_display.set_visible(True)
|
self.solution_display.set_visible(True)
|
||||||
|
|||||||
Reference in New Issue
Block a user