Computer Science, asked by sourikdasclassix, 4 months ago

1. Write a java expression for java for the following
d=v (3x^2+x^2)/a+b​

Answers

Answered by anindyaadhikari13
3

Question:

  • Write the java expression for d = v(3x²+x²)/(a + b)

Answer:

Java expression for the given expression will be,

d = v*(3*x*x + x*x)/(a + b)

You can also write,

d = v*(3*Math.pow(x, 2) +Math.pow(x, 2))/(a + b)

Note: Math.pow(x, y) returns x raised to the power y. Resultant Data Type: double.

Use double data type to get exact result.

Similar questions