Top "Pi" questions

π (pi) is a mathematical constant whose value is the ratio of any Euclidean plane circle's circumference to its diameter; this is the same value as the ratio of a circle's area to the square of its radius.

Fast algorithm to calculate Pi in parallel

I am starting to learn CUDA and I think calculating long digits of pi would be a nice, introductory project. …

algorithm parallel-processing cuda numerical-methods pi
Converting PI digits into text strings

It's kind of interesting that pi's decimal representation never ends and never settles into a permanent repeating pattern. Meaning it's …

ascii analytics pi
Prevent Rounding to Zero in Python

I have a program meant to approximate pi using the Chudnovsky Algorithm, but a term in my equation that is …

python math rounding pi
Bailey–Borwein–Plouffe formula implementation in C++?

EDIT: The requirement was vague and instead of calculating the n-th digit of pi they just wanted pi to the …

c++ pi
How to print 1000 decimals places of pi value?

I would like to print e.g. 1000 or 2000 or 15000 decimals of pi value using R? Now I get only six &…

math r pi
Python: "long int too large to convert to float" when calculating pi

I get this error when using a python script that calculates pi using the Gauss-Legendre algorithm. You can only use …

python python-3.x pi python-3.3
Using basic arithmetics for calculating Pi with arbitary precision

I am looking for a formula/algorithm to calculate PI~3.14 in a given precision. The formula/algorithm must have only …

algorithm math pi
Python numpy unwrap function

I am hoping to convert a array of radians into range [0, 2*pi) and numpy unwrap function is exactly what I …

python python-2.7 numpy pi
Why is there no definition of the constant pi in the C++11 standard?

I find it quiet annoying that I have to use the macro _USE_MATH_DEFINES in order to get the …

c++ c++11 pi c++-standard-library
Gauss-Legendre Algorithm in python

I need some help calculating Pi. I am trying to write a python program that will calculate Pi to X …

python algorithm pi