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], ])