Skip to content

Commit 8a2272b

Browse files
authored
fix typo
1 parent bc806f0 commit 8a2272b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Math.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function solveQuadratic(float $a, float $b, float $c) : array{
5858
if($a === 0.0){
5959
throw new \InvalidArgumentException("Coefficient a cannot be 0!");
6060
}
61-
$discriminant = $b ** $b - 4 * $a * $c;
61+
$discriminant = $b * $b - 4 * $a * $c;
6262
if($discriminant > 0){ //2 real roots
6363
$sqrtDiscriminant = sqrt($discriminant);
6464
return [

0 commit comments

Comments
 (0)