pi – Calculate pi
Generates pi, using the formula:
and leaves the result in an array \xr, printing what is calculated
as it goes along.
The number of digits you can compute depends on your implementation of TeX. The last digit may be wrong, and if it's 0 or 9, the penultimate digit may also be wrong.
|Maintainer||Denis B. Roegel|
Maybe you are interested in the following packages as well.
- xintsession: Interactive computing sessions (fractions, floating points, polynomials)
- dow: Calculate day of week from a numeric date
- list: List ASCII text files
- plain-cm: Variable sized fonts in Plain TeX