B
bryo1001
Hi, im writing a prog to approximate pi as im teaching myself c++. I
was just wondering if i wanted to calculate pi to a certain tolerance,
say like (pi - .001) or some other tolerance, what kind of loop
structure can i use to go about this. I have the algorithm that
calculates pi already programed in, ie 4(1-1/3+1/5...). Any help would
be great! Thanks.
was just wondering if i wanted to calculate pi to a certain tolerance,
say like (pi - .001) or some other tolerance, what kind of loop
structure can i use to go about this. I have the algorithm that
calculates pi already programed in, ie 4(1-1/3+1/5...). Any help would
be great! Thanks.