write the following as Java expressions
Attachments:
Answers
Answered by
0
Answer:
the answer will be a-b I have given dancer no you have to make me brainlist
Answered by
2
Answer:
- math.sqrt ( math.pow (a , 2) - math.pow (b , 2))
Explanation:
- First of all we would be using math.sqrt method because the square root of the given whole argument is being returned.
- In the second condition of (a²) we would be using math.pow method because the first argument that is a is raised to the power 2
- And in the third condition of (b²) math.pow would be used because the first argument that is b is raised to the power 2.
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.abs returns us the absolute value of a given argument.
- Math.pow it returns us the value of a first given argument raised to the power of the given second argument.
- Double datatype is used if a output comes in decimal.
More similar questions:
https://brainly.in/question/42140095?
https://brainly.in/question/30816677?
https://brainly.in/question/18010374?
https://brainly.in/question/44313763?
Similar questions