Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main ( String args []) {
- double x ;
- double basis ;
- if ( args.length == 1) {
- x = Double.parseDouble ( args [0]);
- double y = ln(x);
- if (y == Double.NaN){
- System.out.println("Eingabe fehlerhaft");
- }
- else
- System.out.println("Der natürliche Logarithmus von " + x + " ist " + y + " ,denn exp("+y+")ist " + Math.exp(y));
- }
Add Comment
Please, Sign In to add comment