How to find antilog for a number using java programm?

前端 未结 2 716
不思量自难忘°
不思量自难忘° 2021-01-16 03:32

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

相关标签:
2条回答
  • 2021-01-16 03:48

    mathematically: e^(ln x) = x

    in java:

    Math.pow(Math.E, (Math.log(x)) == x; //equals true
    
    0 讨论(0)
  • 2021-01-16 03:56

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

    0 讨论(0)
提交回复
热议问题