StrictMath.sin(double a) has the following syntax.
public static double sin(double a)
In the following code shows how to use StrictMath.sin(double a) method.
// ww w.j a va2 s.c om public class Main { public static void main(String[] args) { double d1 = (90*Math.PI)/180 , d2 = 0.0, d3 = (1.0/0.0) ; System.out.println("Trigonometric sine of d1 = " + StrictMath.sin(d1)); System.out.println("Trigonometric sine of d2 = " + StrictMath.sin(d2)); System.out.println("Trigonometric sine of d3 = " + StrictMath.sin(d3)); } }
The code above generates the following result.