Debian Codegraph @

texmf-dist/doc/generic/xint/README.md

raw
1 % README
2 % xint 1.4o
3 % 2025/09/06
4
5 Source: xint.dtx 1.4o 2025/09/06 (doc 2025/09/06)
6 Author: Jean-François Burnol
7 Info: Expandable operations on big integers, decimals, fractions
8 License: LPPL 1.3c
9
10
11 Description
12 ===========
13
14 The main functionality is `\xintfloateval` which parses expressions
15 involving floating point numbers, functions, variables and other syntax
16 elements.
17
18 The precision defaults to `16` decimal digits. The logarithm,
19 exponential, direct and inverse trigonometric functions are supported up
20 to `62` digits. The four basic operations and square-root extraction
21 are implemented with correct rounding up to thousands of digits (roughly
22 up to a maximum of 26000 digits for the output).
23
24 A variant `\xinteval` computes with fractions. And `\xintiieval`
25 handles only (arbitarily large) integers.
26
27 All three parsers obtain their result purely expandably. They handle
28 comma separated inputs and nested structures using square brackets. The
29 user can declare custom variables and functions.
30
31 Usage
32 =====
33
34 The way of loading `xintexpr` depends on whether you are using
35 `LaTeX` or not.
36
37 - with `LaTeX`, add `\usepackage{xintexpr}` to the document preamble,
38 - else, do `\input xintexpr.sty` and compile with either one of `etex`,
39 `pdftex`, `xetex`, `luatex` (they all default to the `Plain TeX`
40 format), or with `optex` (i.e. `luatex` with `OpTeX` format),
41 or with `context` (`luametatex` engine).
42
43 Example
44 =======
45
46 Here is an example typical of the `xintexpr` users morning routine since
47 many years (`xintexpr` was first released in 2013):
48
49 \xinteval{reduce(add(1/i^3, i=1..25))}
50
51 It expands (in two steps) to:
52
53 2560976152652211536408111110189/2131858131361319942957376000000
54
55 Repository
56 ==========
57
58 It is at https://github.com/jfbu/xint and the issue tracker
59 is at https://github.com/jfbu/xint/issues.
60
61 Documentation
62 =============
63
64 Both the user manual and the commented source code are in `xint.pdf`.
65
66 A file `CHANGES.html` is provided at https://jfbu.github.io/xint. Its
67 source `xintchanges.md` is part of the CTAN upload, and you
68 can access it in TeXLive using `texdoc xintchanges.md`.
69
70 License
71 =======
72
73 Copyright © 2013-2022, 2025 Jean-François Burnol
74
75 This Work may be distributed and/or modified under the
76 conditions of the LaTeX Project Public License version 1.3c.
77 This version of this license is in
78
79 > <http://www.latex-project.org/lppl/lppl-1-3c.txt>
80
81 and version 1.3 or later is part of all distributions of
82 LaTeX version 2005/12/01 or later.
83
84 This Work has the LPPL maintenance status *author-maintained*.
85
86 The Author of this Work is Jean-François Burnol.
87
88 This Work consists of the file `xint.dtx` and `README.md` and their
89 derived files such as `xint.pdf`.