2

C Program to Find Roots of a Quadratic Equation

 2 years ago
source link: https://www.geeksforgeeks.org/videos/c-program-to-find-roots-of-a-quadratic-equation/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

C Program to Find Roots of a Quadratic Equation

C Program to Find Roots of a Quadratic Equation
Hello everyone. Welcome to the geek for geeks. My name
  • 30 Views
  • 16/06/2022

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/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK