Question
Q2.5.2 Write a while loop to calculate the arithmetic-geometric mean (AGM) of two positive real numbers, x and y, defined as the limit of the sequences: an+1 = (an+bn) bn+1 = √anbn, starting with ao = x, bo =y. Both sequences converge to the same number, denoted agm(x, y). Use your loop to determine Gauss's constant, G
Question image 1