apnum – Arbitrary precision numbers implemented by TeX macros
The basic operations (addition, subtraction, multiplication, division, power to an integer) are implemented by TeX macros in this package. Operands may be numbers with arbitrary numbers of digits; scientific notation is allowed.
The expression scanner is also provided.
As of version 1.4 (December 2015) the calculation of common functions (sqrt, exp, ln, sin, cos, tan, asin, acos, atan, pi) with arbitrary precision in the result has been added.
Exhaustive documentation (including detailed TeXnical documentation) is included. The macro includes many optimizations and uses only TeX primitives (from classic TeX) and \newcount macro.
Public Domain Software
|Contained in||TeX Live as apnum|
|MiKTeX as apnum|
perform calculations within TeX
Download the contents of this package in one zip archive (729.4k).
Maybe you are interested in the following packages as well.
- fltpoint: Simple floating point arithmetic
- bnumexpr: Extends ε-TeX’s \numexpr...\relax construct to big integers
- randomwalk: Random walks using TikZ
- vrb: Verbatim macros in plain TeX