From 20e94c95c6a22041ab89e8bb008510368b02117a Mon Sep 17 00:00:00 2001 From: Sam <40273116+Aweptimum@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:21:08 -0600 Subject: [PATCH] Add failing rref case --- .../Reduction/ReducedRowEchelonFormTest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/LinearAlgebra/Reduction/ReducedRowEchelonFormTest.php b/tests/LinearAlgebra/Reduction/ReducedRowEchelonFormTest.php index bdb426758..cd9f16c26 100644 --- a/tests/LinearAlgebra/Reduction/ReducedRowEchelonFormTest.php +++ b/tests/LinearAlgebra/Reduction/ReducedRowEchelonFormTest.php @@ -1045,6 +1045,25 @@ public function dataProviderForRref(): array [0, 0, 0, 0, 0], ], ], + [ + [ + [-0.99999966687087, 0, 0, 0, 0, 0], + [0, -0.99999966687087, 0, 0, 0, 0.00061146285160793], + [0, 0, -0.99999966687087, 0, -0.00061146285160793, 0], + [0, 0, 0, -1.0000003738869, 0, 0], + [0, 0, -0.00061146285160793, 0, -3.7388694340557*10**-7, 0], + [0, 0.00061146285160793, 0, 0, 0, -3.7388694340557*10**-7] + ], + [ + [1, 0, 0, 0, 0, 0], + [0, 1, 0, 0, 0, 0], + [0, 0, 1, 0, 0, 0], + [0, 0, 0, 1, 0, 0], + [0, 0, 0, 0, 1, 0], + [0, 0, 0, 0, 0, 1] + ] + + ] ]; }