0

Write your code to calculate pi as accurate as you can

Write a mathematical formula you use then attach a code which executes your formula.

13th Feb 2018, 10:29 AM
Siranat usawasutsakorn
Siranat usawasutsakorn - avatar
4 odpowiedzi
+ 1
You would need a library which can handle the massive amount of digits this formula produces to really use the algorithm ^^ https://code.sololearn.com/cJ0s82a3cb2B/?ref=app
13th Feb 2018, 12:33 PM
Alex
Alex - avatar
+ 3
https://code.sololearn.com/cUGHRx5t8csQ/?ref=app or http://users.telenet.be/koen.beek/pages/formules.htm
13th Feb 2018, 11:51 AM
davy hermans
davy hermans - avatar
+ 2
More accurate (5 digits after floating point), and quickest: https://code.sololearn.com/cGkU7PO5ozF4/?ref=app
13th Feb 2018, 11:55 AM
visph
visph - avatar
0
in javascript document.write(Math.PI);
13th Feb 2018, 11:10 AM
Pawitra
Pawitra - avatar