|
|
|
|
|
by e12e
3919 days ago
|
|
Clearly the two results are different, so something strange is going on. But you need to define wrong, consider incrementally approximating pi in 7 steps: 100,50,25,12,4,2,3,3.5
> 3.5
Or even: 100,90,80,70,60,50,40
> 40
I'm assuming you mean wrong as in the algorithm implemented with arbitrary precision would en up with a different set of digits for the number of iterations given? Or something along those lines? |
|
It's probably more a problem of the algorithm not calculating significant figures and truncating the answer.