Match each method from the java.lang.Math class with its function.
Computer scienceProgramming languagesJavaAdditional instrumentsEssential standard classesStandard classes for computations
Math library
Method from java.lang.Math class and their results
Report a typo
Match the items from left and right columns
Math.sqrt(x)
Math.cbrt(x)
Math.abs(x)
Math.log(x)
Math.log10(x)
Math.max(x, y)
Math.min(x, y)
Math.pow(x, y)
returns the base 10 logarithm of x
returns the cube root of value x
returns the greater value of x and y
returns natural logarithm (base e) of x
returns the absolute value of x
returns the smaller value of x and y
returns the square root of value x
returns the value of x raised to the power of y.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.