From 7a086fea936c6fb970728222f76126bf05e391ab Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Oct 2023 14:33:57 +0000 Subject: [PATCH] fix tests --- tests/Math/Functions/BetaTest.php | 2 +- tests/Math/Matrix/MatrixTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Math/Functions/BetaTest.php b/tests/Math/Functions/BetaTest.php index 93bd8deb6..ebd1bc749 100755 --- a/tests/Math/Functions/BetaTest.php +++ b/tests/Math/Functions/BetaTest.php @@ -32,7 +32,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase { self::assertEqualsWithDelta(1.0, Beta::beta(0, 3), 0.001); self::assertEqualsWithDelta(4.4776093, Beta::beta(1.5, 0.2), 0.001); - self::assertEqualsWithDelta(0.045648, Beta::beta(2, 4), 0.001); + self::assertEqualsWithDelta(0.05, Beta::beta(2, 4), 0.001); } /** diff --git a/tests/Math/Matrix/MatrixTest.php b/tests/Math/Matrix/MatrixTest.php index 4dd36eab5..b2cda891f 100755 --- a/tests/Math/Matrix/MatrixTest.php +++ b/tests/Math/Matrix/MatrixTest.php @@ -527,12 +527,12 @@ final class MatrixTest extends \PHPUnit\Framework\TestCase public function testDotVectorMatrix() : void { - $v = Vector::fromArray([3, 4]); + $v = Vector::fromArray([3, 4])->transpose(); self::assertEquals( [11, 39, 53], $v->dot( - MAtrix::fromArray([ + Matrix::fromArray([ [1, 5, 7], [2, 6, 8], ])