/**
* Demonstrate a few of the Math functions for Trigonometry.
* @author Ian F. Darwin, http://www.darwinsys.com/
* @version $Id: Trig.java,v 1.5 2004/02/09 03:33:58 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));
//-
}
}
|