From c84e96a57510db61d58754d3188ec766734f21fb Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Tue, 1 Jun 2021 07:48:16 +0200 Subject: [PATCH] improve least squares example --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index f628b07..2063310 100644 --- a/main.py +++ b/main.py @@ -151,6 +151,8 @@ if __name__ == "__main__": print(Q) print(R) print('solve least squares') + print(matrix[:2, :-1]) + print(matrix[:2, -1:]) print(qr.solve_least_squares(matrix[:2, :-1], matrix[:2, -1:], is_givens=True)) def PolyCoefficients(x, coeffs):