# CTAN up­date: xint

Date: March 2, 2018 8:23:23 PM CET
Jean-François Burnol sub­mit­ted an up­date to the xint pack­age. Ver­sion num­ber: 1.3 2018-03-01 Li­cense type: lp­pl1.3c Sum­mary de­scrip­tion: Ex­pand­able op­er­a­tions on long num­bers An­nounce­ment text:
- re­moved all macros pre­vi­ously dep­re­cated at 1.2o, - mod­i­fied ad­di­tion, sub­trac­tion and mod­ulo op­er­a­tions to use a least com­mon mul­ti­ple for the de­nom­i­na­tor of the re­sult, - added \xin­tPIrr, \xin­tDecToString and pre­duce(), - and last but not least refac­tored ex­ten­sively the \xin­tNewExpr/\xint­d­ef­func mech­a­nism. It got both leaner and stronger and makes pos­si­ble re­cur­sive func­tion def­i­ni­tions. Ex­am­ples: \xint­d­ef­func GCD(a, b):= if(b, GCD(b, a /: b), a); is of course the Eu­clide al­go­rithm (but here us­able with frac­tions). \xint­de­fi­ifunc pow­mod(x, m, n) := if(m, if(m=1, x /: n, if(odd(m), (x*sqr(pow­mod(x, m//2, n))) /: n, sqr(pow­mod(x, m//2, n)) /: n ) ), 1 ); im­ple­ments mod­u­lar ex­po­nen­ti­a­tion (with pos­i­tive ex­po­nents only, like the pow() Python func­tion).
This pack­age is lo­cated at http://mir­ror.ctan.org/macros/generic/xint More in­for­ma­tion is at http://www.ctan.org/pkg/xint We are sup­ported by the TeX User Groups. Please join a users group; see http://www.tug.org/user­groups.html .
Thanks for the up­load. For the CTAN Team Ina Dau

## xint – Ex­pand­able op­er­a­tions on long num­bers

The xint bun­dle main mod­ules are:

xint­tools
util­i­ties of in­de­pen­dent in­ter­est such as ex­pand­able and non-ex­pand­able loops,
xint­core
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,
xint
ex­ten­sion of xint­core,
xint­frac
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,
xin­t­expr
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 .

 Pack­age xint Ver­sion 1.3d 2019-01-06 Copy­right 2013–2019 Jean-François Burnol Main­tainer Jean-François Burnol

more