CTAN Comprehensive TeX Archive Network

New on CTAN: bnu­m­expr

Date: Septem­ber 22, 2014 8:46:28 PM CEST
Jean-François Burnol sub­mit­ted the bnu­m­expr pack­age. Ver­sion num­ber: 1.1 Li­cense type: lp­pl1.3 Sum­mary de­scrip­tion: Ex­tends eTeX’s \nu­m­expr...\re­lax con­struct to big in­te­gers. An­nounce­ment text:
v1.1 of 2014/09/21 \theb­nu­m­expr...\re­lax is anal­o­gous to \the\nu­m­expr...\re­lax but for ar­bi­trar­ily big in­te­gers. Ex­am­ple: \theb­nu­m­expr 30*(21-43*(512-67*(6133-812*2897)))\re­lax which out­puts -202785405180. Op­tion al­low­power fur­ther­more en­ables ^ for power op­er­a­tions. By de­fault, bnu­m­expr uses the arith­metic macros from xint (with / do­ing rounded di­vi­sion for com­pat­i­bil­ity with \nu­m­expr). To re­duce over­head, per­haps at some point these could get ex­tracted from xint.sty/xint­tools.sty and moved to a smaller core pack­age. Op­tion big­int­calc tells bnu­m­expr to load pack­age big­int­calc rather than pack­age xint (how­ever / does then trun­cated di­vi­sion). With op­tion cus­tom, nei­ther xint nor big­int­calc are loaded and it is up to the user to pro­vide suit­able def­i­ni­tions for ex­pand­able macros \bnu­m­ex­prAdd, \bnu­m­ex­prSub, \bnu­m­ex­prMul, \bnu­m­ex­prDiv and, in case of op­tion al­low­power, also \bnu­m­ex­prPow. The \bnu­m­expr parser is a scaled down ver­sion of \xin­ti­iexpr from xin­t­expr.sty (which loads the whole chain xint­frac/xint/xint­tools) Cur­rently it is pro­vided only as a LaTeX2e pack­age.
This pack­age is lo­cated at http://mir­ror.ctan.org/macros/la­tex/con­trib/bnu­m­expr More in­for­ma­tion is at http://www.ctan.org/pkg/bnu­m­expr We are sup­ported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/user­groups.html .
Thanks for the up­load. For the CTAN Team Man­fred Lotz

bnu­m­expr – Ex­tends ’s \nu­m­expr...\re­lax con­struct to big in­te­gers

The pack­age ex­tends ε- \nu­m­expr...\re­lax op­er­a­tion to al­low big in­te­gers, pow­ers, fac­to­ri­als, trun­cated di­vi­sion and its as­so­ci­ated mod­ulo.

By de­fault, bnu­m­expr loads pack­age xint­core (part of the xint bun­dle) and uses its arith­metic macros.

Ver­sion1.2d 2019-01-07
Copy­right2014–2019 Jean-François Burnol
Main­tainerJean-François Burnol



Guest Book Sitemap Contact Contact Author