1.

Write a java program to Designa class called Result withamethodcalculate to accept the values ab. Print the values ofx andY where a = - √a²+b7 and y=anda²+ b5/2a using mathematical methods in java​

Answer»

abs() : java.math.abs() method returns the absolute VALUE of any type of argument passed. This method can handle all the DATA types.

Special CASE :

Result is POSITIVE zero, if the argument is positive zero or negative zero.

Result is positive INFINITY, if the argument is infinite.

Result is NaN, if passed argument is NaN



Discussion

No Comment Found