2022-01-10
Since
ite = 8
int r = 1;
int s = 1;
int R = 0;
for (int i=0,i<ite,1){
R = 3*r+4*s;
s=2*r+3*s;
r=R
}
int result = r/s;
System.out.println(result);
But it's not exactly the code one would get using picard's iteration method, so my answer does not fit the criteria. What am-I doing wrong?
If one does not know the answer but knows how to visualise picard's method for calculating sqrt(2) on a graph that would already help me a lot.
Thanks in advance
Most Popular Questions