谁知道数学函数ln(x)java里怎么表示吗,就是log已e为底的那个阿

birch2002 2005-10-22 11:56:08
谁知道数学函数ln(x)java里怎么表示吗,就是log已e为底的那个阿
...全文
3156 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hfree 2005-10-23
  • 打赏
  • 举报
回复
Math.log(x)则可,看API文档即可,以后这种问题最好自己查查

public static double log(double a)

Returns the natural logarithm (base e) of a double value. Special cases:
If the argument is NaN or less than zero, then the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is positive zero or negative zero, then the result is negative infinity.
A result must be within 1 ulp of the correctly rounded result. Results must be semi-monotonic.


Parameters:
a - a number greater than 0.0.
Returns:
the value ln a, the natural logarithm of a.
believefym 2005-10-23
  • 打赏
  • 举报
回复
shine333(enihs) 正解
ericqxg007 2005-10-23
  • 打赏
  • 举报
回复
log是Math类中的方法啊
ericqxg007 2005-10-23
  • 打赏
  • 举报
回复
强 晚了
shine333 2005-10-23
  • 打赏
  • 举报
回复
利用数学公式阿,logaN = log xN / log xa
birch2002 2005-10-23
  • 打赏
  • 举报
回复
谢谢阿,那log应该怎么写阿

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧