% README % xint 1.4i % 2021/06/11
Source: xint.dtx 1.4i 2021/06/11 (doc 2021/06/11) Author: Jean-Francois Burnol Info: Expandable operations on big integers, decimals, fractions License: LPPL 1.3c
It is possible to use the package both with Plain (
\input xintexpr.sty) or with the LaTeX macro format (
The basic aim is provide expandable computations on (arbitrarily big) integers, fractions, and floating point numbers (at a user chosen precision). The four operations and the square-root extraction achieve the correct rounding for the given arbitrary precision. Exponential (natural and to the base ten), logarithm (also to the base 10), fractional powers, direct and inverse trigonometrical functions are available up to 62 digits of precision. The syntax supports dummy variables (to generate sequences of values) and nested structures. Support for user-declared functions and variables is implemented.
Usage on the command line
One can use
xintexpr as an interactive calculator on the command line. See the xintsession package.
>>> 2^100; @_1 1267650600228229401496703205376 >>> cos(1); @_2 0.5403023058681397 >>> &fp=32 (/usr/local/texlive/2021/texmf-dist/tex/generic/xint/xintlog.sty) (/usr/local/texlive/2021/texmf-dist/tex/generic/xint/xinttrig.sty) fp mode (log and trig reloaded at Digits=32) >>> cos(1); @_3 0.54030230586813971740093660744298 >>> 3^1000; @_4 1.3220708194808066368904552597521e477 >>> &exact exact mode (floating point evaluations use 32 digits) >>> 3^1000; @_5 132207081948080663689045525975... (trimmed for this README)
xint.tds.zipand install in a suitable TDS-compliant repertory via
unzip. "admin" privilges might be needed, as well as a file database rebuild (
texhash). For example, on macos x, installation into user home folder (no
sudo, and no
texhashas it is recommended to not have a ls-R file there)
unzip xint.tds.zip -d ~/Library/texmf
- all files can be extracted using
etex xint.dtx, or
Makefileincluded in the CTAN upload is present; see the file
INSTALL, if present, else read the help in extracted file
README.md: this file
CHANGES.html: change log as relevant to end users (
texdoc --list xint)
xint.pdf: user manual
sourcexint.pdf: commented source code (
texdoc --list xint or
xintexpr requires the
\expanded primitive. This is a functionality of all major TeX engines since TeXLive 2019.
Copyright (C) 2013-2021 by Jean-Francois Burnol
This Work may be distributed and/or modified under the conditions of the LaTeX Project Public License version 1.3c. This version of this license is in
and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
This Work has the LPPL maintenance status
The Author of this Work is
This Work consists of the files
xint.dtx and its extracted and derived files inclusive of the documentation files
xint.pdf for contact information.
Download the contents of this package in one zip archive (2.6M).
xint – Expandable operations on long numbers
The xint bundle main modules are:
- utilities of independent interest such as expandable and non-expandable loops,
- expandable macros implementing addition, subtraction, multiplication, division, and powers for arbitrarily long integers,
- extension of xintcore,
- extends the scope of xint to decimal numbers, to numbers using scientific notation and also to (exact) fractions,
- provides expandable parsers of numeric expressions using the standard infix notations, parentheses, built-in functions, user definable functions and variables (and more ...) which do either exact evaluations (also with fractions) or floating point evaluations under a user chosen precision.
Further modules of the bundle are:
xintkernel (support macros for all the bundle constituents),
xintbinhex (conversion to and from hexadecimal and binary bases),
lcm() functions to xintexpr),
xintseries (evaluates numerically partial sums of series and
power series with fractional coefficients), and
xintcfrac (dedicated to the computation and display of continued fractions).
All computations are compatible with expansion-only context.
The packages may be used with Plain TeX, LaTeX, or (a priori) any other macro format built upon TeX.
|Licenses||The LaTeX Project Public License 1.3c|
|Copyright||2013–2021 Jean-François Burnol|
|Contained in||TeX Live as xint|
MiKTeX as xint