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/06/16 09:19:27
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
实在不知道哪里错了
(14.72)3.801 是幂运算,不是乘法运算
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
一道基本不等式的数学题
一道数学题,基本的 在线等
一道很基本的数学题已知:1
一道高中数学题很基本的为什么C53等于10
市场经济运行的基本规律是什么?
什么是java程序中基本的结构单位
盈亏数学题的基本公式
一道数学题,计算的.
一道数学题,求和的.
一道三角的数学题
一道圆锥曲线的数学题
一道大学的数学题
一道实数的数学题
一道可爱的数学题.
一道虚数的数学题
一道大一的数学题,
一道数学题,画蓝圈的