write a java expression for: (0.05-2y^3)/(x-y)
Answers
Answered by
23
Answer:
result = (0.05 - (2*Math.pow(y,3)))/(x-y);
Explanation:
to use pow function you have to import Math from java.util package
result of the expression should be stored in a double variable
Answered by
0
Answer:
The following Java expression will perform the desired work:
System.out.println(0.05 - 2(pow(y,3))/(x-y))
Explanation:
Since we are calculating the power of y. Therefore, we have use pow function for it.
In Java Programming language, this function is written in Math library that needed to imported before using the function by using the import statement.
Rest numerical's are written in the same way as they are given.
#SPJ3
Similar questions
Computer Science,
6 months ago
Science,
6 months ago
English,
6 months ago
Political Science,
1 year ago
Chemistry,
1 year ago