CTAN Comprehensive TeX Archive Network

xint – Expandable operations on long numbers

The xint bun­dle main mod­ules are:

util­i­ties of in­de­pen­dent in­ter­est such as ex­pand­able and non-ex­pand­able loops,
ex­pand­able macros im­ple­ment­ing ad­di­tion, sub­trac­tion, mul­ti­pli­ca­tion, di­vi­sion, and pow­ers for ar­bi­trar­ily long in­te­gers,
ex­ten­sion of xint­core,
ex­tends the scope of xint to dec­i­mal num­bers, to num­bers us­ing sci­en­tific no­ta­tion and also to (ex­act) frac­tions,
pro­vides ex­pand­able parsers of nu­meric ex­pres­sions us­ing the stan­dard in­fix no­ta­tions, paren­the­ses, built-in func­tions, user de­fin­able func­tions and vari­ables (and more ...) which do ei­ther ex­act eval­u­a­tions (also with frac­tions) or float­ing point eval­u­a­tions un­der a user cho­sen pre­ci­sion.

Fur­ther mod­ules of the bun­dle are: xin­tk­er­nel (sup­port macros for all the bun­dle con­stituents), xint­bin­hex (con­ver­sion to and from hex­adec­i­mal and bi­nary bases), xint­gcd (pro­vides gcd() and lcm() func­tions to xin­t­expr), xintseries (eval­u­ates nu­mer­i­cally par­tial sums of se­ries and power se­ries with frac­tional co­ef­fi­cients), and xintcfrac (ded­i­cated to the com­pu­ta­tion and dis­play of con­tin­ued frac­tions).

All com­pu­ta­tions are com­pat­i­ble with ex­pan­sion-only con­text.

The pack­ages may be used with Plain , , or (a pri­ori) any other macro for­mat built upon .

Sources /macros/generic/xint
Ver­sion1.2p 2017-12-05
Li­censeThe Project Public Li­cense 1.3c
Main­tainerJean-Fran├žois Burnol
Con­tained in TeX Live as xint
MiKTeX as xint
Topics Arith­metic

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

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author