summaryrefslogtreecommitdiff
path: root/README.md
blob: 8d08e55a445a267eb617e39d9786e4ed6821ad75 (plain)
1
2
3
4
5
6
7
8
9
10
11
# pi

A small program to generate the digits of pi, using the fact that

```
pi = pi + sin(pi)
```

Usage: `./pi` - generate 100 digits of pi; `./pi n` - generate n digits of pi

Takes time roughly proportional to n<sup>2</sup> to generate n digits.