| 1 |
%% |
| 2 |
%% This is file `bnumexprchanges.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% bnumexpr.dtx (with options: `changes') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from bnumexprchanges.tex. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file bnumexpr.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
%% --------------------------------------------------------------- |
| 24 |
%% The bnumexpr package: Expressions with big integers |
| 25 |
%% Copyright (C) 2014-2022, 2025 Jean-Francois Burnol |
| 26 |
%% |
| 27 |
\item[1.7b (2025/09/27)] Add to documentation an expandable macro |
| 28 |
computing Fibonacci numbers and illustrate it with the computation |
| 29 |
of $F_{10000}$. |
| 30 |
\item[1.7a (2025/09/14)]\mbox{}\newline |
| 31 |
\textbf{Bug fix:} inputs consisting exclusively of zeros and underscores |
| 32 |
following an hexadecimal or other prefix caused a crash due to a |1.7| |
| 33 |
regression. \emph{Yes, we have now added a long delayed test suite doing |
| 34 |
more than checking only those examples as included in the documentation.} |
| 35 |
|
| 36 |
\textbf{New feature:} if the parser expects a value and finds only |
| 37 |
underscores (they are allowed as separators for blocks of digits) before |
| 38 |
hitting an operator, an opening parenthesis (or |\bnumexpr| sub-expression), |
| 39 |
a comma, or the end of the expression, it will consider it has fetched the |
| 40 |
value zero. Formerly, for example expressions reduced to |_|, |__|, or |
| 41 |
entirely empty, or for example |_^_| all reported errors. |
| 42 |
|
| 43 |
\textbf{Other:} \cs{evaltohex} which signaled via an expandable |
| 44 |
error its deprecation since |1.6| has been removed. |
| 45 |
\item[1.7 (2025/09/13)]\mbox{}\newline |
| 46 |
\textbf{Bug fix:} inputs with an underscore immediately after a |
| 47 |
hexadecimal (or other) prefix caused a crash due to a |1.6| regression. |
| 48 |
|
| 49 |
\textbf{New features:} |
| 50 |
\begin{itemize} |
| 51 |
\item Support for hexadecimal input using letters in lowercase. |
| 52 |
\item Optional argument |[ha]| for lowercase hexadecimal output. |
| 53 |
\end{itemize} |
| 54 |
\item[1.6a (2025/09/07)]\mbox{}\newline |
| 55 |
\textbf{Bug fix:} the |1.6| support for Babel-active |
| 56 |
characters worked with |\bnumeval| (which is recommended interface) |
| 57 |
but not with |\bnumexpr|. |
| 58 |
\item[1.6 (2025/09/05)]\mbox{}\newline |
| 59 |
\textbf{Breaking changes:} |
| 60 |
\begin{itemize}[noitemsep] |
| 61 |
\item Release |1.4n| or later of the \xintname bundle is required |
| 62 |
(for those components actually used, which by default are |
| 63 |
\xintkernelname, \xintcorename and \xintbinhexname). |
| 64 |
\item \cs{evaltohex} is deprecated and causes |
| 65 |
an error signaling it. \emph{It was removed at |1.7a|}. Use new |\bnumeval||[h]|. |
| 66 |
\item \cs{bnumexprsetup} was deprecated at |1.5| and kept as alias of |
| 67 |
|\bnumsetup|. It has now been removed. |
| 68 |
\item \cs{bnumprintonetohex} and \cs{bnumhextodec}, which were documented |
| 69 |
as customizable do not exist anymore. Check the documentation for |
| 70 |
|\bnumprintonehex| and |\bnumsetup|'s key |hextodec|. |
| 71 |
\item Under the |custom| option, not only \xintcorename but |
| 72 |
also \xintbinhexname are not loaded. |
| 73 |
Use |customcore| to avoid that. There is also |custombinhex|. |
| 74 |
\end{itemize} |
| 75 |
|
| 76 |
\textbf{Bug fix:} |
| 77 |
An underscore |_| located in front of a number used to cause |
| 78 |
an error. It is now ignored. |
| 79 |
|
| 80 |
\textbf{New features:} |
| 81 |
\begin{itemize} |
| 82 |
\item |0b|, |0o| and |0x| are recognized as prefixes for binary, octal, and |
| 83 |
hexadecimal inputs. And |'| is recognized as prefix for octal input, in |
| 84 |
addition to |"| for hexadecimal. |
| 85 |
\item |\bnumeval| accepts an optional argument |[b]| or |[o]| or |
| 86 |
|[h]| for automatic conversion of the calculated value |
| 87 |
(or comma separated values) to |
| 88 |
respectively binary, octal, or hexadecimal. |
| 89 |
\item Babel-active characters (such as |:| and |!| with French) |
| 90 |
do not need any preventive measures anymore such as using |
| 91 |
|\string!| in place of |!|. |
| 92 |
\item |\bnumsetup| can now be used also to customize which macros |
| 93 |
implement conversion from decimal to other bases. |
| 94 |
\end{itemize} |
| 95 |
The documentation was extensively revised and made more user-friendly. |
| 96 |
\item[1.5 (2021/05/17)] |
| 97 |
\begin{itemize} |
| 98 |
\item \textbf{breaking change:} the power operators act now in a right |
| 99 |
associative way; this has been announced at \xintexprname as a probable |
| 100 |
future evolution, and is implemented in anticipation here now. |
| 101 |
\item \textbf{fix two bugs} (imported from upstream \xintexprname) regarding |
| 102 |
hexadecimal input: impossibility to use |"\foo| syntax (one had to do |
| 103 |
|\expandafter"\foo| which is unexpected constraint; a very longstanding |
| 104 |
\xintexprname bug) and issues with leading zeros (since \xintexprname |1.2m|). |
| 105 |
\item renamed \cs{bnumexprsetup} into |\bnumsetup|; the former remains |
| 106 |
available but is deprecated. [REMOVED AT |1.6|] |
| 107 |
\item the customizability and extendibility is now total: |
| 108 |
\begin{enumerate} |
| 109 |
\item |\bnumprintone|, |\bnumprintonetohex|, |\bnumprintonesep|, |\bnumhextodec|, |
| 110 |
\item |\bnumdefinfix| which allows to add extra infix operators, |
| 111 |
\item |\bnumdefpostfix| which allows to add extra postfix operators. |
| 112 |
\end{enumerate} |
| 113 |
\item |\bnumsetup|, |\bnumdefinfix|, |\bnumdefpostfix| obey the |
| 114 |
|\xintglobaldefstrue| and |\xintverbosetrue| settings. |
| 115 |
\item documentation is extended, providing details regarding the precedence |
| 116 |
model of the parser, as inherited from upstream \xintexprname; also an |
| 117 |
example of usage of |\bnumsetup| is included on how to transform |
| 118 |
|\bnumeval| into a calculator with fractions. |
| 119 |
\end{itemize} |
| 120 |
|
| 121 |
\item[1.4a (2021/05/13)] |
| 122 |
\begin{itemize} |
| 123 |
\item fix undefined control sequences errors encountered by the parser in |
| 124 |
case of either extra or missing closing parenthesis (due to a problem |
| 125 |
in technology transfer at |1.4| from upstream \xintexprname). |
| 126 |
\item fix |\BNE_Op_opp| must now be \emph{f}-expandable (also caused as a |
| 127 |
collateral to the technology transfer). |
| 128 |
\item fix user documentation regarding the constraints applying to the user |
| 129 |
replacement macros for the core algebra, as they have changed at |1.4|. |
| 130 |
\end{itemize} |
| 131 |
|
| 132 |
\item[1.4 (2021/05/12)] |
| 133 |
\begin{itemize} |
| 134 |
\item technology transfer from \xintexprname |1.4| of |
| 135 |
|2020/01/31|. The |\expanded| primitive is now required (TeXLive |
| 136 |
2019). |
| 137 |
\item addition to the syntax of the |"| prefix for hexadecimal |
| 138 |
input. |
| 139 |
\item addition of \cs{evaltohex} which is like |\bnumeval| with an extra |
| 140 |
conversion step to hexadecimal notation. |
| 141 |
\end{itemize} |
| 142 |
|
| 143 |
\item[1.2e (2019/01/08)] |
| 144 |
Fixes a documentation glitch (extra braces when mentioning |\the\numexpr| or |
| 145 |
|\thebnumexpr|). |
| 146 |
|
| 147 |
\item[1.2d (2019/01/07)] |
| 148 |
\begin{itemize} |
| 149 |
\item requires \xintcorename |1.3d| or later (if not using option |custom|). |
| 150 |
\item adds |\bnumeval|\marg{expression} user interface. |
| 151 |
\end{itemize} |
| 152 |
|
| 153 |
\item[1.2c (2017/12/05)] \textbf{Breaking changes:} |
| 154 |
\begin{itemize} |
| 155 |
\item requires \xintcorename |1.2p| or later (if not using option |custom|). |
| 156 |
\item |divtrunc| key of \cs{bnumexprsetup} is renamed to |div|. |
| 157 |
\item the |//| and |/:| operators are now by default associated to the |
| 158 |
\emph{floored} division. This is to keep in sync with the change of |
| 159 |
\xintcorename at |1.2p|. |
| 160 |
\item for backwards compatibility, one |
| 161 |
may add to existing document:\newline |
| 162 |
\string\bnumexprsetup\{div=\string\xintiiDivTrunc, |
| 163 |
mod=\string\xintiiModTrunc\} |
| 164 |
\end{itemize} |
| 165 |
|
| 166 |
\item[1.2b (2017/07/09)] |
| 167 |
\begin{itemize} |
| 168 |
\item the |_| may be used to separate visually blocks of digits in long |
| 169 |
numbers. |
| 170 |
\end{itemize} |
| 171 |
|
| 172 |
\item[1.2a (2015/10/14)] |
| 173 |
\begin{itemize} |
| 174 |
\item requires \xintcorename |1.2| or later (if not using option |custom|). |
| 175 |
\item additions to the syntax: factorial |!|, truncated division |
| 176 |
|//|, its associated modulo |/:| and |**| as alternative to |^|. |
| 177 |
\item all options removed except |custom|. |
| 178 |
\item new command \cs{bnumexprsetup} which replaces the commands such as |
| 179 |
|\bnumexprusesbigintcalc|. |
| 180 |
\item the parser is no more limited to numbers with at most 5000 digits. |
| 181 |
\end{itemize} |
| 182 |
|
| 183 |
\item[1.1b (2014/10/28)] |
| 184 |
\begin{itemize} |
| 185 |
\item README converted to |markdown/pandoc| syntax, |
| 186 |
\item the package now loads only |xintcore|, which belongs to |xint| bundle |
| 187 |
version |1.1| and extracts from the earlier |xint| package the core arithmetic |
| 188 |
operations as used by |bnumexpr|. |
| 189 |
\end{itemize} |
| 190 |
|
| 191 |
\item[1.1a (2014/09/22)] |
| 192 |
\begin{itemize} |
| 193 |
\item added |l3bigint| option to use experimental \LaTeX3 |
| 194 |
package of the same name, |
| 195 |
|
| 196 |
\item added Changes and Readme sections to the documentation, |
| 197 |
|
| 198 |
\item better |\BNE_protect| mechanism for use of |
| 199 |
|\bnumexpr...\relax| inside an |\edef| (without |\bnethe|). Previous one, |
| 200 |
inherited from |xintexpr.sty 1.09n|, assumed that the |\.=<digits>| dummy |
| 201 |
control sequence encapsulating the computation result had \cs{relax} |
| 202 |
meaning. But removing this assumption was only a matter of letting |
| 203 |
|\BNE_protect| protect two, not one, tokens. This will be backported to |
| 204 |
next version of \xintexprname, naturally (done with |xintexpr.sty 1.1|). |
| 205 |
\end{itemize} |
| 206 |
|
| 207 |
\item[1.1 (2014/09/21)] First release. This is down-scaled from the |
| 208 |
(development version of) \xintexprname. Motivation came the previous day |
| 209 |
from a chat with \textsc{Joseph Wright} over big int status in \LaTeX3. |
| 210 |
The |\bnumexpr...\relax| parser can be used on top of big int macros of |
| 211 |
one's choice. Functionalities limited to the basic operations. I leave |
| 212 |
the power operator |^| as an option. |
| 213 |
\endinput |
| 214 |
%% |
| 215 |
%% End of file `bnumexprchanges.tex'. |