A toy Julia implementation of Bailey-Borwein-Plouffe (BBP) alogithm for computation of hexadecimal digits of Pi.
Install via package manager
julia> Pkg.clone("https://github.com/kalvotom/PiBBP.jl")
Load the package.
julia> using PiBBP
The call to digpi(d)
computes d+1
th hexadecimal digit of the fractional part of pi
.
julia> digpi(1000000)
6