Ich habe keinen Zugriff auf eine C# Umgebung
Das Programm funktioniert und liefert folgenden Output:
n: 000000004 --\> 2,49570906810244 3,49570906810244 diff: 1
n: 000000008 --\> 2,83981914435717 3,33981914435717 diff: 0,5
n: 000000016 --\> 2,99825303782774 3,24825303782774 diff: 0,25
n: 000000032 --\> 3,07260242287713 3,19760242287713 diff: 0,125
n: 000000064 --\> 3,10804691277969 3,17054691277969 diff: 0,0625
n: 000000128 --\> 3,12515579239661 3,15640579239661 diff: 0,03125
n: 000000256 --\> 3,13349308295723 3,14911808295723 diff: 0,015625
n: 000000512 --\> 3,13758490271965 3,14539740271965 diff: 0,0078125
n: 000001024 --\> 3,13960364153902 3,14350989153902 diff: 0,00390625
n: 000002048 --\> 3,14060340291144 3,14255652791144 diff: 0,001953125
n: 000004096 --\> 3,14109988635776 3,14207644885776 diff: 0,0009765625
n: 000008192 --\> 3,14134692692469 3,14183520817469 diff: 0,000488281250000444
n: 000016384 --\> 3,14147002252639 3,14171416315139 diff: 0,000244140625
n: 000032768 --\> 3,14153142017799 3,14165349049049 diff: 0,0001220703125
n: 000065536 --\> 3,14156206591771 3,14162310107396 diff: 6,103515625E-05
n: 000131072 --\> 3,14157737001877 3,14160788759689 diff: 3,0517578125E-05
n: 000262144 --\> 3,14158501543354 3,1416002742226 diff: 1,52587890625E-05
n: 000524288 --\> 3,14158883579482 3,14159646518935 diff: 7,62939453125E-06
n: 001048576 --\> 3,14159074514601 3,14159455984327 diff: 3,81469726606909E-06
n: 002097152 --\> 3,14159169952839 3,14159360687703 diff: 1,9073486328125E-06
mfg M.L.