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 calculate wind direction from U and V wind components in R

I have U and V wind component data and I would like to calculate wind direction from these values in …

r angle pi atan2
How is pi (π) calculated?

How can I write a function which will return pi (π) to a given number of decimal places? Speed is not …

algorithm math pi
Print pi to a number of decimal places

One of the challenges on w3resources is to print pi to 'n' decimal places. Here is my code: from …

python pi
Plot the sine and cosine functions

I'm currently having some problems regarding my homework. Here's the Exercise: (Plot the sine and cosine functions) Write a program …

java math graph pi trigonometry
Why does Python's hash of infinity have the digits of π?

The hash of infinity in Python has digits matching pi: >>> inf = float('inf') >>> hash(…

python math hash floating-point pi
python overwrite previous line

how do you overwrite the previous print in python 2.7? I am making a simple program to calculate pi. here is …

python python-2.7 printing overwrite pi
Cannot import name '_gi'

I'm trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not …

python ubuntu pi
Function to find the nth digit of Pi

I have always wanted to find an algorithm that did this. I do not care how slow it is, just …

c++ c algorithm pi
generating pi to nth digit java

I wanted to know how I can generate pi to the nth digit. I have a couple of basic ideas. …

java precision bigdecimal pi
How to get PI in tensorflow?

I could not find any information about mathemtical constants in the Tensorflow API neither in Basic Math functions nor in …

python tensorflow pi