public RegisterEEA eea(Double a, Double b) {
        ArrayList<RegisterEEA> eeaList = new ArrayList<RegisterEEA>();
        RegisterEEA r = new RegisterEEA(a, b);
        eeaList.add(r);
        while (r.a != 1 && r.b != 0) {
            r = new RegisterEEA(r);
            eeaList.add(r);
        }
        for (int i = eeaList.size() - 1; i >= 0; i--) {
            r = eeaList.get(i);
            if (i == eeaList.size() - 1) {
                r.computeXY();
            } else {
                r.computeXY(eeaList.get(i + 1));
            }
            System.out.println("r " + r.toString());
        }
        return eeaList.get(0);
    }