Find the roots of Quadratic Equation – Java Program by SJ · January 23, 2019 Quadratic equation is in the form = ax^{2} + bx + c Discriminant (d) = b^{2} – 4ac Then roots are calculates using the equations below Root_1 = (-b + √d)/2a Root_2 = (-b – √d)/2a See the image below Java Code:Run This Code Output: Quadratic Equation: +3x^2 -5x -8 = 0, Roots are:(2.6666666666666665, -1.0 __________________________________________________ Top Companies Interview Questions..- Google Microsoft Amazon Facebook more.. If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment. __________________________________________________ Related Posts:Print Number with its Sign in JavaDisjoint Set Data Structure - Union Find AlgorithmJava Program to find if Triangle can be formed using given 3 sidesGenerate all the strings of length n from 0 to k-1.Disjoint Set | Union-Find Algorithm - Union by rank and path compressionFind the Area and Perimeter of Rectangle – Java ProgramJava Program to find Sum the elements of an ArrayCollatz Conjecture - Steps to transform Number to 1Java program to find the largest element in arrayFind the Area of Triangle using base and height - Java ProgramShare this:LinkedInPrintTumblrFacebookTwitterEmailRedditLike this:Like Loading...