CTAN
Comprehensive TeX Archive Network

CTAN up­date: xint

Date: July 28, 2017 5:30:04 PM CEST
Jean-Fran├žois Burnol sub­mit­ted an up­date to the xint pack­age. Ver­sion num­ber: 1.2l 2017-07-26 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:
Main­te­nance re­lease. - The un­der­score char­ac­ter _ is ac­cepted by the xin­t­expr parsers as a digit sep­a­ra­tor. Ex­am­ple: \xint­thei­iexpr 123_456_789 * 1111_2222_3333 \re­lax It is not al­lowed as _first_ char­ac­ter of a num­ber, as it would then be mis-in­ter­preted as the start of a pos­si­ble vari­able name. Only ex­pres­sions han­dle it (the space char­ac­ter can also sep­a­rate dig­its there), not macros. The LaTeX pack­age bnu­m­expr will also ac­cept the un­der­score as digit sep­a­ra­tor in its up­com­ing re­lease. - Some refac­tor­ing in xint­core for some small ef­fi­ciency gains. - Some macros were not ro­bust against ar­gu­ments whose ex­pan­sion looks for­ward for some ter­mi­na­tion (e.g. \num­ber\math­code`\-), and many more were bro­ken if the in­puts used a non-ter­mi­nated \nu­m­expr, e.g. \xin­tAdd{\the\nu­m­ex­pr1}{2}. The user man­ual never said this was le­gal in­put, but it was slightly in­con­ve­nient. Most macros have now been made ro­bust against such non prop­erly ter­mi­nated in­puts. In ex­pres­sions though, a \nu­m­expr swal­low­ing the end­ing \re­lax is def­i­nitely still to be avoided, as the parser ab­so­lutely needs to hit against such a to­ken at some point. - A few mi­nor bug­fixes, see CHANGES.pdf or CHANGES.html for the de­tails.
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
Thanks for the up­load. For the CTAN Team Man­fred Lotz We are sup­ported by the TeX user groups. Please join a users group; see http://www.tug.org/user­groups.html .

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­agexint
Ver­sion1.2p 2017-12-05
Main­tainer Jean-Fran├žois Burnol

An­nounce­ments

more

Guest Book Sitemap Contact Contact Author