vorherigerMenunächster

Pi

Functionality and Example

Pi is a mathematical constant. Its value for the first five digits is:

π = 3,14159

Pi is the ratio of any circle's circumference to its diameter independet of the size of this circle. It is often represented by the small greek letter π.

There are several definitions for Pi:π is an irrational number, which means that its value cannot be expressed exactly as a fraction having integers in both the numerator and denominator (unlike 22/7). Consequently, its decimal representation never ends and never repeats.The first 100 decimal places are

π = 3,14159 26535 89793 23846 26433 83279 50288 41971 69399 37510 58209 74944 59230 78164 06286 20899 86280 34825 34211 70679 ...

Source: Wikipedia

Bedienung



GCC calculates pi with 1 111 111 digits


  1. Calculate the value of a certain decimal place of Pi; Example: The 42nd decimal place is 9
  2. Show an array of specified decimal places of Pi; Example: The next 23 digits starting from the fifth decimal place are: 92653589793238462643383
  3. Search for specific digit patterns within Pi; Example: The digit pattern 42 first appears at the 92nd decimal place.

Calculate the value of a certain decimal place of Pi



Input
  1. Position number of the decimal place to be calculated
  2. Click!
Output
Calculated value for this position within Pi

Show an array of decimal places of Pi



Input
  1. Position number of the first decimal place to be shown
  2. Count of digits to be calculated from the starting position
  3. Click!
Output
Array of digits of the desired position within Pi

Search for specific digit patterns within Pi



Input
  1. Pattern to be searched for
  2. Click!
Ausgabe
Position, where the searched pattern first appears within Pi