Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quadratic Equation Solver #504

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yash373
Copy link

@yash373 yash373 commented Sep 13, 2024

Add Quadratic Equation Solver

Description

This pull request adds functionality to solve quadratic equations of the form ax^2 + bx + c = 0. The solver uses the quadratic formula

It handles real and complex roots depending on the discriminant value (b^2 - 4ac). The function returns either two real roots or two complex roots if the discriminant is negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant