Value of a polynomial at a point: The value of a polynomial p ( x) at x is obtained by putting x and it is denoted by p ( ). The general form of a quadratic polynomial is a x 2 + b x + c. ImaginaryPart =sqrt(-discriminant)/(2*a) Ĭout << "Roots are complex and different. A polynomial is said to be linear, quadratic, cubic and biquadratic according to as its degree is 1, 2, 3 and 4 respectively. If discriminant is less than 0, the roots are complex and different.Įxample: Roots of a Quadratic Equation #include įloat a, b, c, x1, x2, discriminant, realPart, imaginaryPart Ĭout
Or, if your equation factored, then you can use the quadratic formula to test if your solutions of the quadratic equation are correct. An example for interpolation is given as follows. The quadratic formula is: x b ± b2 4ac 2a x - b ± b 2 - 4 a c 2 a You can use this formula to solve quadratic equations. Similarly, polynomial interpolation is used to calculate the values between known data points. If discriminant is equal to 0, the roots are real and equal. Examples of Quadratic Interpolation Click Here for Sample Questions Interpolation helps to calculate the value of an unknown quantity between two known quantities.If discriminant is greater than 0, the roots are real and different.The discriminant tells the nature of the roots. Find the roots of the polynomial x 2 +2x-7. Let us check the answers to our three examples in the 'completing the square' section. The term b 2-4ac is known as the discriminant of a quadratic equation. Teachers do not have mercy on students who do not remember the quadratic formula, unless they can help themselves by completing the square instead The examples revisited. A polynomial of the form a x 2 + b x + c, where a, b and c are real numbers and a 0 is called a. Introduction to Quadratic Equations Quadratic Polynomial. Formula to Find Roots of Quadratic Equation In this article, you will learn the concept of quadratic equations, standard form, nature of roots, methods for finding the solution for the given quadratic equations with more examples. For a quadratic equation ax 2+bx+c = 0 (where a, b and c are coefficients), it's roots is given by following the formula.