資源簡介
Java 指數與對數運算(基礎篇-實例208).zip
代碼片段和文件信息
package?com.mingrisoft.math;
public?class?MathUtil?{
????
????public?static?void?main(String[]?args)?{
????????System.out.println(“8的立方根是:“?+?Math.cbrt(8));
????????System.out.println(“e的8次方是:“?+?Math.exp(8));
????????System.out.println(“e的8次方-1是:“?+?Math.expm1(8));
????????System.out.println(“8的自然對數是:“?+?Math.log(8));
????????System.out.println(“8的10為底的對數是:“?+?Math.log10(8));
????????System.out.println(“9的自然對數是:“?+?Math.log1p(8));
????????System.out.println(“2的3次方是:“?+?Math.pow(2?3));
????????System.out.println(“8的平方根是:“?+?Math.sqrt(8));
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????232??2010-09-11?17:01??.classpath
?????文件?????????379??2010-09-11?17:01??.project
?????文件????????1330??2013-11-21?08:41??bin\com\mingrisoft\math\MathUtil.class
?????文件?????????619??2013-11-20?10:07??src\com\mingrisoft\math\MathUtil.java
- 上一篇:Java 數組下標越界異常
- 下一篇:Java 非法訪問異常
評論
共有 條評論