Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz authored Jun 6, 2024
1 parent bc806f0 commit 8a2272b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Math.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function solveQuadratic(float $a, float $b, float $c) : array{
if($a === 0.0){
throw new \InvalidArgumentException("Coefficient a cannot be 0!");
}
$discriminant = $b ** $b - 4 * $a * $c;
$discriminant = $b * $b - 4 * $a * $c;
if($discriminant > 0){ //2 real roots
$sqrtDiscriminant = sqrt($discriminant);
return [
Expand Down

0 comments on commit 8a2272b

Please sign in to comment.