The easiest way to write a generic algorithm is to simply use the quadratic formula. If it is a computer program, ask the user for the coefficients a, b, and c of the generic equation ax2 + bx + c = 0, then just replace them in the quadratic formula.
When you need to find the roots of a quadratic equation and factorisation does not work (or you cannot find the factors). The quadratic equation ALWAYS works. And when appropriate, it will give the imaginary roots which, judging by this question, you may not yet be ready for.
This quadratic equation has no real roots because its discriminant is less than zero.
-- The roots of a quadratic equation are the values of 'x' that make y=0 . -- When you graph a quadratic equation, the graph is a parabola. -- The points on the parabola where y=0 are the points where it crosses the x-axis. -- If it doesn't cross the x-axis, then the roots are complex or pure imaginary, and you can't see them on a graph.
ax+b=)
The quadratic formula can be used to find the solutions of a quadratic equation - not a linear or cubic, or non-polynomial equation. The quadratic formula will always provide the solutions to a quadratic equation - whether the solutions are rational, real or complex numbers.
Write an algorithm to find the root of quadratic equation
To find the roots (solutions) of a quadratic equation.
If the quadratic is ax2 + bx + c = 0 then the product of the roots is c/a.
When you need to find the roots of a quadratic equation and factorisation does not work (or you cannot find the factors). The quadratic equation ALWAYS works. And when appropriate, it will give the imaginary roots which, judging by this question, you may not yet be ready for.
This quadratic equation has no real roots because its discriminant is less than zero.
You can find the roots with the quadratic equation (a = 1, b = 3, c = -5).
The quadratic formula is used to find the solutions (roots) of a quadratic equation in the form ax² + bx + c = 0, where "a," "b," and "c" are constants.
ax2 +bx + c To find roots of any quadratic equation. X = - b (+/-) sqrt(b2 - 4ac)/2a
When you graph the quadratic equation, you have three possibilities... 1. The graph touches x-axis once. Then that quadratic equation only has one solution and you find it by finding the x-intercept. 2. The graph touches x-axis twice. Then that quadratic equation has two solutions and you also find it by finding the x-intercept 3. The graph doesn't touch the x-axis at all. Then that quadratic equation has no solutions. If you really want to find the solutions, you'll have to go to imaginary solutions, where the solutions include negative square roots.
A quadratic equation could be used to find the optimal ingredients for a mixture. Example: if you are trying to create a super cleanser, you could make a parabola of your ingredients, finding the roots of the equation to find the optimal amount for each ingredient.
You can find the roots with the quadratic equation (a = 1, b = 3, c = -5).
Using the quadratic formula x = [-b (+ or -)root(b^2 - 4ac)]/2a, from y = ax^2 + bx + c