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.

how to use math.pi in java

I am having problems converting this formula V = 4/3 π r^3. I used Math.PI and Math.pow, but I get this …

java pi
Should I use scipy.pi, numpy.pi, or math.pi?

In a project using SciPy and NumPy, should I use scipy.pi, numpy.pi, or math.pi?

python numpy scipy pi
How to printf long long

I'm doing a program that aproximate PI and i'm trying to use long long, but it isn't working. Here is …

c long-integer pi
How do I determine whether my calculation of pi is accurate?

I was trying various methods to implement a program that gives the digits of pi sequentially. I tried the Taylor …

algorithm math language-agnostic pi
OverflowError: (34, 'Result too large')

I'am getting an overflow error(OverflowError: (34, 'Result too large') I want to calculate pi to 100 decimals here's my code: def …

python overflow decimal pi
What is the fastest way to get the value of π?

I'm looking for the fastest way to obtain the value of π, as a personal challenge. More specifically, I'm using ways …

performance algorithm language-agnostic unix pi
Why define PI = 4*ATAN(1.d0)

What is the motivation for defining PI as PI=4.D0*DATAN(1.D0) within Fortran 77 code? I understand how it works, …

fortran fortran77 pi
1000 digits of pi in Python

I have been thinking about this issue and I can't figure it out. Perhaps you can assist me. The problem …

python pi
Python pi calculation?

I am a python beginner and I want to calculate pi. I tried using the Chudnovsky algorithm because I heard …

python algorithm pi
What's the difference between "pi" and "M_PI" in objc

Including some math in my code I stumbled over the constant "PI". At least in my Xcode version 4.6 I could …

objective-c math pi