How to find antilog for a number using java programm?

北城以北 提交于 2020-01-11 07:32:16

问题


can someone please tell me How to find antilog for a number using java program? i am new to this java Math.log(10) gives the log value. now I want to take this output and verify using antilog that program is giving right value.please help me.


回答1:


mathematically: e^(ln x) = x

in java:

Math.pow(Math.E, (Math.log(x)) == x; //equals true



回答2:


You can use Logarithm class in Java to calculate log and antilog. More on this is provided here.



来源:https://stackoverflow.com/questions/18209676/how-to-find-antilog-for-a-number-using-java-programm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!