2*√a^3+b^3 convert into java expression
Answers
Answered by
10
Answer:
i will give u an example like u r question
Write the java expression for
Write the java expression forRoot of (a+b)^3/(a-b).
Explanation:
Java program to calculate value of expression
of square root of (atb)^3/(a-b).
import java.lang.";
public class Main
{
public static void main(String[] args){
double a-10.0, b=5.0;
double res;
res= + Math.sqrt(Math.pow(a+b,3)/(a-b);
System.out.println("Result of expression
+res)
}
}
Output
Result of expression 25.98076211353316
Note
The package java.lang.Math.pow(double a,
double b) in java will return the value of the first
parameter passed raised to the power of the
second parameter passed.
Similar questions