CTAN update: apnum
New version 1.5 from January 2016 adds the possibility of printing expressions in math mode. Syntax of the expressions is given by apnum. Users can type the expression once and then they can print or evaluate it from shared source. The printed form automatically uses the common math syntax for expressions. For example \SIN{\PI/4}^2 is printed as $\sin^2 {\pi\over4}$ and evaluated as 0.5.
This package is located at http://mirror.ctan.org/macros/generic/apnum More information is at http://www.ctan.org/pkg/apnum We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Ina Dau
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.
Package | apnum |
Version | 1.7 |
Maintainer | Petr Olšák |