How to find antilog for a number using java programm?

前端 未结 2 715
不思量自难忘°
不思量自难忘° 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
    

提交回复
热议问题