java的一道基本的数学题.自己运行的结果和答案不一样,不知道哪里错了Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and pres
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/27 06:56:17
![java的一道基本的数学题.自己运行的结果和答案不一样,不知道哪里错了Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and pres](/uploads/image/z/5173377-33-7.jpg?t=java%E7%9A%84%E4%B8%80%E9%81%93%E5%9F%BA%E6%9C%AC%E7%9A%84%E6%95%B0%E5%AD%A6%E9%A2%98.%E8%87%AA%E5%B7%B1%E8%BF%90%E8%A1%8C%E7%9A%84%E7%BB%93%E6%9E%9C%E5%92%8C%E7%AD%94%E6%A1%88%E4%B8%8D%E4%B8%80%E6%A0%B7%2C%E4%B8%8D%E7%9F%A5%E9%81%93%E5%93%AA%E9%87%8C%E9%94%99%E4%BA%86Create+a+new+project+called+ComputeThis+having+a+class+called+Tester.+The+main+method+of+Tester+should+calculate+the+value+of+the+following+formulas+and+pres)
java的一道基本的数学题.自己运行的结果和答案不一样,不知道哪里错了Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and pres
java的一道基本的数学题.自己运行的结果和答案不一样,不知道哪里错了
Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and present the answers as shown:
d2 = (14.72)3.801 + ln 72 …ln means log base e
The output of your code should appear as follows:
d2 = 27496.988867001543
Verify these answers with a calculator.
------------------
我的代码:
public class Tester {
public static void main(String args[])
{
double c = 14.72*3.801;
double d = Math.log(72);
System.out.println("d2 = "+(c+d));
}
}
-----------
我运行得出60.2.
而题目上要求应该出27496.988867001543
实在不知道哪里错了
java的一道基本的数学题.自己运行的结果和答案不一样,不知道哪里错了Create a new project called ComputeThis having a class called Tester. The main method of Tester should calculate the value of the following formulas and pres
(14.72)3.801 是幂运算,不是乘法运算