Advertisements
Advertisements
Question
Write the Java expression for the following:
`(−b+sqrt(b^2 - 4ac))/(2a)`
One Line Answer
Solution
(-b + Math.sqrt(b * b - 4 * a * c)) / 2.0 * a
shaalaa.com
Is there an error in this question or solution?
Write the Java expression for the following:
`(−b+sqrt(b^2 - 4ac))/(2a)`
(-b + Math.sqrt(b * b - 4 * a * c)) / 2.0 * a