Computer Science, asked by shalluspehia123, 5 hours ago

write a java expresion using math class x=b+sqrtb^2-4ac/ 2a

Answers

Answered by steffiaspinno
0

The expression using math class is:

( -b + Math.sqrt(b * b - 4 * a * c) ) / (2 * a)

Expressions are essential components of any Java programme. They are typically used to generate a new value, but they can also be used to assign a value to a variable. Values, variables, operators, and method calls are used to construct expressions. A notation can be as simple as a single character or as complex as a pattern. Data structures can be used for any type of text search or text replace operation. Although Java does not include a built-in Regular Expression class, we can work with regular expressions by importing the java.util.regex package.

Similar questions