Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Oct 22, 2023
1 parent 2cbbe69 commit 7a086fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Math/Functions/BetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testBeta() : void
{
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);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Math/Matrix/MatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,12 @@ public function testDotMatrices() : void

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

0 comments on commit 7a086fe

Please sign in to comment.