package uk.ac.leeds.ccg.andyt.tests.java; import java.lang.Math.*; public class TestMath { /** * @param args the command line arguments */ public static void main (String args[]) { System.out.println( "pow( 1.0d/9.0d, 3.0d ) " + Math.pow( 1.0d/9.0d, 3.0d ) ); System.out.println( "pow( -1.0d/9.0d, 3.0d ) " + Math.pow( -1.0d/9.0d, 3.0d ) ); System.out.println( "pow( -1.0d/3.0d, -3.0d ) " + Math.pow( -1.0d/3.0d, -3.0d ) ); System.out.println( "pow( 1.0d/9.0d, 1.0d/3.0d ) " + Math.pow( 1.0d/9.0d, 1.0d/3.0d ) ); System.out.println( "pow( -1.0d/9.0d, 1.0d/3.0d ) " + Math.pow( - 1.0d/9.0d, 1.0d/3.0d ) ); System.out.println( "pow( -1.0d/9.0d, -1.0d/3.0d ) " + Math.pow( -1.0d/9.0d, -1.0d/3.0d ) ); System.out.println( "pow( 27.0d, 1.0d/3.0d ) " + Math.pow( 27.0d, 1.0d/3.0d ) ); System.out.println( "pow( -27.0d, 1.0d/3.0d ) " + Math.pow( -27.0d, 1.0d/3.0d ) ); System.out.println( "pow( 27.0d, -3.0d ) " + Math.pow( 27.0d, -3.0d ) ); System.out.println( "pow( -27.0d, -3.0d ) " + Math.pow( -27.0d, -3.0d ) ); System.out.println( "pow( -3.0d, 3.0d ) " + Math.pow( -3.0d, 3.0d ) ); System.out.println( "pow( -3.0d, -3.0d ) " + Math.pow( -3.0d, -3.0d ) ); } }