write equivalent java expression for the following: la^5 - √b|
Answers
Answered by
3
Explaination :
- Here we would be using abs, pow , and sqrt method. abs is used because absolute of the given argument is being returned , pow method will be used because a is raised to the power 5 and sqrt method will be used because the square of a double value that is b is being returned.
Syntax:-
- pow = Math.pow
- sqrt = Math.sqrt
- abs = Math.abs
Final Answer:-
★ Math.abs ( Math.pow (a,5) - Math.sqrt (b)) ★
Additional Information :
- Method is a named block of a códe in a class. It is executed within a defined set of instructions.
- Methods and variables of math class are defined as static members.
- Java.lang package contains classes and interfaces which are fundamental to Java programming language.
- The math class of java.lang package contains generic mathematical functions including some geometric and trigonometric function.
- Math.cbrt returns cube root of a double value.
- Math.ceil returns smallest integer which is greater or equal to the argument.
- Math.max gives largest of two arguments
- Math.min gives smallest of two arguments.
More similar questions :
- https://brainly.in/question/42140095?
- https://brainly.in/question/30816677?
- https://brainly.in/question/18010374?
Similar questions