• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
June 16, 2022 |1.4K Views
C Program to Find Roots of a Quadratic Equation
  Share  3 Likes
Description
Discussion


In this video, we will see how to C program to find the roots of a quadratic equation.
In mathematics, the roots of a quadratic equation are solutions to the equation that lie on or close to the real axis. These solutions can be found by solving for x using rational calculus and graphing these points. The most common method of finding roots is by linearly approximating them with square root or cube root functions, though there are other methods as well.

A quadratic equation in variable “x” is an equation of the form, 
ax2 + bx + c = 0
Where, a, b, and c are real numbers and constants, and a ≠ 0.
The “roots” of the quadratic are the numbers that satisfy the quadratic equation.

There are always two roots for any quadratic equation, although sometimes they may coincide.

Depending on the value of a the nature of roots will change.
1.If a = 0, then the roots will be equal and real.
2. If a > 0, then the roots will be real and distinct.
3.If a < 0, then the roots will be imaginary.

If α and β are the roots of the equation, then Sum of roots = -b/a and Product of roots = c/a.

Program to find the roots of quadratic equation: https://www.geeksforgeeks.org/program-to-find-the-roots-of-quadratic-equation/

Read More