Java tutorial
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)); } }