Skip to content

Instantly share code, notes, and snippets.

@dipu-bd
Last active December 29, 2018 11:18
Show Gist options
  • Save dipu-bd/d3040dd69ad80582b24ce4dfd406c6e9 to your computer and use it in GitHub Desktop.
Save dipu-bd/d3040dd69ad80582b24ce4dfd406c6e9 to your computer and use it in GitHub Desktop.
Part #1
---------------
base, b1 = 0.70710678118655
height, h1 = 0.29289321881345
Area of single part = 0.20710678118655
Total area of 4 parts = 0.82842712474619
Current PI = 2.82842712474619
Part #2
---------------
base, b2 = 0.38268343236509
height, h2 = 0.07612046748871
Area of single part = 0.02913004177182
Total area of 8 parts = 0.23304033417453
Current PI = 3.06146745892072
Part #3
---------------
base, b3 = 0.19509032201613
height, h3 = 0.01921471959677
Area of single part = 0.00374860583358
Total area of 16 parts = 0.05997769333733
Current PI = 3.12144515225805
Part #4
---------------
base, b4 = 0.09801714032956
height, h4 = 0.00481527332780
Area of single part = 0.00047197932150
Total area of 32 parts = 0.01510333828789
Current PI = 3.13654849054594
Part #5
---------------
base, b5 = 0.04906767432742
height, h5 = 0.00120454379483
Area of single part = 0.00005910416264
Total area of 64 parts = 0.00378266640881
Current PI = 3.14033115695475
...
Part #24
---------------
base, b24 = 0.00000009362676
height, h24 = 0.00000000000000
Area of single part = 0.00000000000000
Total area of 33554432 parts = 0.00000000000001
Current PI = 3.14159265358979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment