Java StrictMath.sin(double a)
Syntax
StrictMath.sin(double a) has the following syntax.
public static double sin(double a)
Example
In the following code shows how to use StrictMath.sin(double a) method.
/* w w w .j a va 2 s . co m*/
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.