Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An implementation of BBP through Bellard's formula to calculate the nth digit of Pi.
Java
branch: master
Failed to load latest commit information.
Bpp.java Added Source
README.md Updated README.md to include running time.

README.md

BBP-Bellard

An implementation of BBP through Bellard's formula. This program extracts the nth digit of Pi without calculating the digits before it. It will print out the nth number followed by the next 9 numbers in base 10.

Example: 1 - 141592653

Example: 990 - 921642019

The digit-extraction algorithm uses Bellard's modifications to get a running time of O(n^2). Note large numbers.

Algorithm Used

Algorithm

Something went wrong with that request. Please try again.