FileDocCategorySizeDatePackage
Trig.javaAPI DocExample420Sat Nov 25 12:56:08 GMT 2000None

Trig.java

/**
 * Demonstrate a few of the Math functions for Trigonometry.
 * @author Ian F. Darwin, ian@darwinsys.com
 * @version $Id: Trig.java,v 1.4 2000/11/25 17:56:08 ian Exp $
 */
public class Trig {
	public static void main(String[] argv) {
		//+
		System.out.println("Java's PI is " + Math.PI);
		System.out.println("Java's e is " + Math.E);
		System.out.println("The cosine of 1.1418 is " + Math.cos(1.1418));
		//-
	}
}