to 5 decimal places

Generate to 5 decimal places Use Gauss Legendre Algorithm y = aa=(a+b)b=byc = c - x(a-y)2x = 2x a = 1x = 1 c = to 5 digits = 3.14159

Image to Crop

Generate π to 5 decimal places

Use Gauss Legendre Algorithm

Iteration Formula is below:

y = a
a=½(a+b)
b=√by
c = c - x(a-y)2
x = 2x

π  =  (a+b)2
  4c

Start with these initial values:

a = 1
x = 1

b  =  1
  2

c = ¼

π to 5 digits using Gauss-Legendre

abcxπ = (a + b)^2/4c
10.707106781180.2512.91421
0.853553390590.840896415240.228553390600.853553390593.14057
0.847224902910.847201266730.228473291100.847224902913.14159

π to 5 digits = 3.14159


ncG1vNJzZmivp6x7rq3ToZqepJWXv6rA2GeaqKVfqLKivsKhZamgoHS%2BfrzIXmlprJ9af3GBhGtnnZ2TnrqiuIRrZ6mkkZiytA%3D%3D

 Share!