CTAN Comprehensive TeX Archive Network

CTAN Update: xint

Datum: 7. Januar 2019 19:40:33 MEZ
Jean-François Burnol submitted an update to the xint bundle. Version: 1.3d 2019-01-06 License: lppl1.3c Summary description: Expandable operations on long numbers Announcement text:
Improvements and new features - xintexpr: the gcd() and lcm() multi-arguments functions have been refactored to handle general fractions. The dependency on xintgcd is removed. - xintexpr: \xinteval, \xintieval, \xintiieval, and \xintfloateval as synonyms to \xintthexpr...\relax etc..., but with the (comma-separated) expression as a usual braced macro argument. Attention: these names were formerly used with some other (barely documented) meanings, for which \xintexpro, \xintiexpro, etc... are now used. - xintexpr: \xintifsgnexpr, \xintifsgnfloatexpr, \xintifsgniiexpr, \xintunassignexprfunc, \xintunassigniiexprfunc, \xintunassignfloatexprfunc, isone() and isint(). Bug fix - xintcore, xintexpr : division in \xintiiexpr was broken for a zero dividend and a one-digit divisor (e.g. 0//7) since 1.2p due to a bug in \xintiiDivMod for such arguments. The bug was signaled (thanks to Kpym for report) and fixed shortly after 1.3c release of June 2018 but I then **completely forgot** to upload a bugfix release to CTAN at that time, apologies for that. And the usual lot of documentation "improvements". See CHANGES.html for more details.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/xint The package’s files themselves can be inspected at http://mirror.ctan.org/macros/generic/xint/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
We are supported by the TeX users groups. Please join a users group; see https://www.tug.org/usergroups.html .

xint – Expandable arbitrary precision floating point and integer operations

Loading xintexpr provides \xinteval and \xintfloateval.

\xintfloateval evaluates numerical expressions. The floating point precision defaults to 16 decimal digits and can be set by user. Trigonometry, exponential and logarithms are implemented up to a maximal precision of 62 decimal digits.

\xinteval computes exactly with integers, fractions, and decimal numbers or numbers in scientific notation. Note though that multiplying two floating point numbers will about double the number of digits, and so on, because the algebra is done exactly.

Both are compatible with expansion-only context.

Loading xintexpr imports automatically various other modules that it depends upon. Among them:

  • xinttools: utilities such as expandable and non-expandable loops,
  • xint: macros implementing in particular the basic operations on arbitrarily long integers,
  • xintbinhex: conversions between decimal and binary, octal, or hexadecimal bases for arbitrarily long integers,
  • xintfrac: macros implementing in particular the basic operations on arbitrarily large fractions, decimal numbers, or numbers in scientific notation.

Further modules of independent interest include xintgcd, xintseries and xintcfrac.

You can use xintexpr (and the other components) with (via \usepackage) or also with Plain , Op, or Cont (via \input xintexpr.sty).

All the components are documented in the file xint.pdf, which also contains the commented source code.

Paketxint
Version1.4o 2025-09-06
Copyright2013–2022, 2025 Jean-François Burnol
BetreuerJean-François Burnol

Ankündigungen

mehr

Gästebuch Seiten-Struktur Impressum Autor kontaktieren