If your expressions calculate square roots, power, absolute values etc, you might need standard functions (also called methods, "functions" and "methods" can be used interchangeably). For instance, if we need to calculate square root, we use a standard method Math.sqrt().
Define three variables, a, b and c. Let a=2, b=-1, c=-21. Please write Java code to solve the values of the express to the left.
B. Standard methods are provided to us in Java Standard Library. We just use them. Common Math Functions(Methods) in Java are listed here: