import java.io.*;

public class Newton{
    public static void main(String args[]){
	int n;
	double x1, x2, eps;

	x1=0.0; x2=0.0; eps=1.0; // 初期値

	System.out.println(1.0E-5*1.0E-1);
	
	/*
	// 方程式の計算
	while(eps>1.0E-5) {
	    x2 = x1 - (Math.exp(x1) - Math.E)/(Math.exp(x1));
	    // eps の計算
	    eps = Math.abs(Math.exp(x2) - Math.exp(x1));
	    x1 = x2;
	    System.out.println(eps);
	    System.out.println(x1);
	}
	*/

	// 方程式の計算 (exp(x)-3x=0)
	while(eps>1.0E-5) {
	    x2 = x1 - (Math.exp(x1) - 3 * x1)/(Math.exp(x1) - 3);
	    // eps の計算
	    eps = Math.abs(Math.exp(x2) - Math.exp(x1) - 3*(x2 - x1));
	    x1 = x2;
	    System.out.println(x1);
	}

	System.out.println(Math.exp(0.6)-1.8);

    }
}
