Given an equation with value a, b, and c, where a and b is any value and c is constant, find how many solutions thus this quadratic equation have?
Input : Output : 2 solutions Input : Output : no solution
To check whether the equation has a solution or not, quadratic formula for discriminant is used.
The formula is given as,
Respective conditions are given as,
- if the discriminant is positive , then the quadratic equation has two solutions.
- if the discriminant is equal , then the quadratic equation has one solution.
- if the discriminant is negative , then the quadratic equation has no solution.
- Program to find the Roots of Quadratic equation
- Find the number of solutions to the given equation
- Find number of solutions of a linear equation of n variables
- Number of solutions for the equation x + y + z <= n
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Number of non-negative integral solutions of sum equation
- Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
- Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula
- Program to find equation of a plane passing through 3 points
- Find 'N' number of solutions with the given inequality equations
- Find the missing value from the given equation a + b = c
- Number of solutions of n = x + n ⊕ x
- Number of solutions for x < y, where a <= x <= b and c <= y <= d and x, y are integers
- Count number of solutions of x^2 = 1 (mod p) in given range
- Number of solutions to Modular Equations
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.