Download The xint bundle

Transcript
Description of the packages
xinttools is loaded by xint (hence by all other packages of the bundle, too): it provides
utilities of independent interest such as expandable and non-expandable loops.
xint implements with expandable TEX macros additions, subtractions, multiplications, divisions and powers with arbitrarily long numbers.
xintfrac extends the scope of xint to decimal numbers, to numbers in scientific notation
and also to fractions with arbitrarily long such numerators and denominators separated
by a forward slash.
xintexpr extends xintfrac with an expandable parser \xintexpr . . . \relax of expressions involving arithmetic operations in infix notation on decimal numbers, fractions, numbers in scientific notation, with parentheses, factorial symbol, function
names, comparison operators, logic operators, twofold and threefold way conditionals, sub-expressions, macros expanding to the previous items.
Further modules:
xintbinhex is for conversions to and from binary and hexadecimal bases.
xintseries provides some basic functionality for computing in an expandable manner partial sums of series and power series with fractional coefficients.
xintgcd implements the Euclidean algorithm and its typesetting.
xintcfrac deals with the computation of continued fractions.
Most macros, and all of those doing computations, work purely by expansion without assignments, and may thus be used almost everywhere in TEX.
The packages may be used with any flavor of TEX supporting the ε-TEX extensions. LATEX
users will use \usepackage and others \input to load the package components.
Contents
1
1.1
1.2
1.3
Read me first
Presentation of the package . . .
User interface . . . . . . . . . . . . . . .
Space and time, floating point
macros . . . . . . . . . . . . . . . . . . . . .
3
1.4 Printing big numbers on the page 6
1.5 Expandable implementations of
mathematical algorithms . . . . . . 7
1.6 FAQ . . . . . . . . . . . . . . . . . . . . . . . 7
3
4
5
2
Recent changes
8
3
Some examples
9
4
Further illustrative examples within this document
11
5
General overview
12
6
Origins of the package
13
7
Expansion matters
14
8
User interface
8.1 Input formats . . . . . . . . . . . . . . . . 17
8.2 Output formats . . . . . . . . . . . . . . 19
16
8.3 Multiple outputs . . . . . . . . . . . . . . 20
9
Use of TEX registers and variables
9.1 Use of count registers . . . . . . . . . 20
20
9.2 Dimensions . . . . . . . . . . . . . . . . . 21
10
\ifcase, \ifnum, ... constructs
23
2