Guest User

Untitled

a guest
Apr 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public static void main ( String args []) {
  2.     double x ;
  3.     double basis ;
  4.     if ( args.length == 1) {
  5.         x = Double.parseDouble ( args [0]);
  6.         double y = ln(x);
  7.         if (y == Double.NaN){
  8.             System.out.println("Eingabe fehlerhaft");
  9.             }
  10.         else
  11.             System.out.println("Der natürliche Logarithmus von " + x + " ist " + y + " ,denn exp("+y+")ist " + Math.exp(y));
  12.         }
Add Comment
Please, Sign In to add comment