// LnTest.java MM 2011 import Tools.IO.*; // Eingaben /** * Test der Klasse Ln. */ public class LnTest { /** * Berechnet die Funktion f( x) = ln( x) fuer * gegebene x, vergleicht Ergebnis mit Math.log( x). */ public static void main( String[] args) { // Ueberschrift System.out.println( "Berechne x = f( f^-1( x))"); // Logarithmusfunktion Ln ln = new Ln(); // Exponentialfunktion Exp e = new Exp(); char weiter; do { // Eingabe System.out.println(); double x = IOTools.readDouble( "x = "); // Werteberechnung double xx = e.wert( ln.wert( x)); // Ausgabe System.out.println ( "e.wert( ln.wert( " + x + ")) = " + xx); // Weiter System.out.println(); weiter = IOTools.readChar( "Weiter j/n ? "); } while( weiter == 'j'); System.out.println(); System.out.println( "Test beendet"); System.out.println(); } }