[latex3-commits] [git/LaTeX3-latex3-latex3] master: Move FPU logb to stable (63e104720)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Sep 20 10:39:39 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/63e104720979f1c60b74aa49485097b30df5ab53

>---------------------------------------------------------------

commit 63e104720979f1c60b74aa49485097b30df5ab53
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Sep 20 09:39:39 2019 +0100

    Move FPU logb to stable
    
    Well-attested, e.g. C++ ref.


>---------------------------------------------------------------

63e104720979f1c60b74aa49485097b30df5ab53
 l3kernel/CHANGELOG.md     |  1 +
 l3kernel/l3candidates.dtx | 13 -------------
 l3kernel/l3fp.dtx         | 15 ++++++++++++++-
 3 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index c83423979..274015c77 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -12,6 +12,7 @@ this project uses date-based 'snapshot' version identifiers.
 - Moved to stable:
   - `\bool_const:Nn`
   - `\dim_sign:n`
+  - FP `logb` operator
   - `\fp_sign:n`
   - `\int_sign:n`
   - `\intarray_show:N`
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 5f9426c3b..00f13c880 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -221,19 +221,6 @@
 %
 % \section{Additions to \pkg{l3fp}}
 %
-% \begin{function}[EXP, added = 2018-11-03]{logb}
-%   \begin{syntax}
-%     \cs{fp_eval:n} \{ |logb(| \meta{fpexpr} |)| \}
-%   \end{syntax}
-%   Determines the exponent of the \meta{fpexpr}, namely the floor of
-%   the base-$10$ logarithm of its absolute value.  \enquote{Division by
-%   zero} occurs when evaluating $\operatorname{logb}(\pm 0) = -\infty$.
-%   Other special values are $\operatorname{logb}(\pm\infty)=+\infty$
-%   and $\operatorname{logb}(\nan{})=\nan{}$.  If the operand is a tuple
-%   or is \nan{}, then \enquote{invalid operation} occurs and the result
-%   is \nan{}.
-% \end{function}
-%
 % \begin{function}[pTF, added = 2019-08-25]{\fp_if_nan:n}
 %   \begin{syntax}
 %     \cs{fp_if_nan:n} \Arg{fpexpr}
diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index 43015184f..515a0a679 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -72,7 +72,7 @@
 %     negation $\mathop{!}x$, conjunction
 %     $x\mathop{\&\&}y$, disjunction $x\mathop{\vert\vert}y$, ternary
 %     operator $x\mathop{?}y\mathop{:}z$.
-%   \item Exponentials: $\exp x$, $\ln x$, $x^y$.
+%   \item Exponentials: $\exp x$, $\ln x$, $x^y$, $\operatorname{logb} x$.
 %   \item Integer factorial: $\operatorname{fact} x$.
 %   \item Trigonometry: $\sin x$, $\cos x$, $\tan x$, $\cot x$, $\sec
 %     x$, $\csc x$ expecting their arguments in radians, and
@@ -1077,6 +1077,19 @@
 %   operation} occurs.
 % \end{function}
 %
+% \begin{function}[EXP, added = 2018-11-03]{logb}
+%   \begin{syntax}
+%     \cs{fp_eval:n} \{ |logb(| \meta{fpexpr} |)| \}
+%   \end{syntax}
+%   Determines the exponent of the \meta{fpexpr}, namely the floor of
+%   the base-$10$ logarithm of its absolute value.  \enquote{Division by
+%   zero} occurs when evaluating $\operatorname{logb}(\pm 0) = -\infty$.
+%   Other special values are $\operatorname{logb}(\pm\infty)=+\infty$
+%   and $\operatorname{logb}(\nan{})=\nan{}$.  If the operand is a tuple
+%   or is \nan{}, then \enquote{invalid operation} occurs and the result
+%   is \nan{}.
+% \end{function}
+%
 % \begin{function}[tested = m3fp-logic002]{max, min}
 %   \begin{syntax}
 %     \cs{fp_eval:n} \{ |max(| \meta{fpexpr_1} |,| \meta{fpexpr_2} |,| \ldots{} |)| \}





More information about the latex3-commits mailing list