Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use advanced math in java

import java.lang.Math;
//This imports java's math library

public class Main {
  public static void main(String args[]){
    double sine = Math.sin(5);
    System.out.println(sine);
    
    //Outputs -0.9589242746631385
  }
}
 
PREVIOUS NEXT
Tagged: #advanced #math #java
ADD COMMENT
Topic
Name
8+3 =