Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

xint – Expandable operations on long numbers

The bun­dle pro­vides four pack­ages:

  • xint, which pro­vides ex­pand­able TeX macros that im­ple­ment the ba­sic arith­metic op­er­a­tions of ad­di­tion, sub­trac­tion, mul­ti­pli­ca­tion and di­vi­sion, as ap­plied to ar­bi­trar­ily long num­bers rep­re­sented as chains of dig­its with an op­tional mi­nus sign;
  • xint­tools is loaded by xint (hence by all other pack­ages of the bun­dle, too): it pro­vides util­i­ties of in­de­pen­dent in­ter­est such as ex­pand­able and non-ex­pand­able loops.
  • xint­frac, which com­putes frac­tions us­ing xint;
  • xin­t­expr, which ex­tends xint­frac with an ex­pand­able parser of ex­pres­sions in­volv­ing in­te­gers and a wide va­ri­ety of op­er­a­tors;
  • xint­bin­hex pro­vides con­ver­sions to and from bi­nary and hex­adec­i­mal bases;
  • xintseries, which pro­vides ba­sic func­tion­al­ity for com­put­ing par­tial sums us­ing xint;
  • xint­gcd, which pro­vides im­ple­men­ta­tions of the Eu­clidean al­go­rithm, and of its type­set­ting;
  • xintcfrac, which deals with the com­pu­ta­tion of con­tin­ued frac­tions,
All of the pack­ages’ com­pu­ta­tions are done in a way that they can op­er­ate in an ex­pand­ing en­vi­ron­ment.

The pack­ages may be used ei­ther with Plain TeX or LaTeX.

Sources/macros/generic/xint
Doc­u­men­ta­tion
Ver­sion1.09n 2014-04-01
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2013-2014 Jean-François Burnol
Main­tainerJean-François Burnol
TDS archivexint.tds.zip
Con­tained inTeXlive as xint
MikTeX as xint
Topics per­form and type­set arith­metic prob­lems
per­form cal­cu­la­tions within TeX

Down­load the con­tents of this pack­age in one zip archive (819.5k).

Guest Book Sitemap Contact