240
edits
Changes
→Pi
Pi: 3.14172063999999995331791069475002586841583251953125000000000000
Both programs calculate finite results of Pi, however the Leibniz implementation has higher accuracy and calculates more digits per iteration. Since both algorithms have O(n) runtime, the Leibniz implementation is also superior in terms of speed.