Ctrl+ the left button all the time, why can't you see how the interior of pow () under math is implemented?

I want to see the implementation code of java.lang.math.pow (), but I can"t click on it.

Sep.10,2021

the method labeled native can be implemented in C language. You can download the source code of jdk and search the C language part of the source code to find it. This part of the code cannot be viewed directly in IDE.

you can see
http://www.docjar.com/html/ap.
Math.pow is implemented through StrictMath.

 public static double pow(double a, double b) {
           return StrictMath.pow(a, b); // default impl. delegates to StrictMath
      }

StrictMath.java
http://www.docjar.com/html/ap.

  613       public static native double pow(double a, double b);

there is also an implementation of the corresponding java
http://developer.classpath.or.
for reference.

document
https://docs.oracle.com/javas.

Menu