Computer Science, asked by Marksman98131, 1 year ago

write a java expression for: (0.05-2y^3)/(x-y)

Answers

Answered by purnamahesh
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 vishakasaxenasl
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