summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polexpr
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-12 22:05:09 +0000
committerKarl Berry <karl@freefriends.org>2019-02-12 22:05:09 +0000
commit6df54a5d07db68aa119eceb9d1d5d7bd25b0ff69 (patch)
tree32acfcdf6d5721f5d703132ff6a98c922efcf356 /Master/texmf-dist/tex/latex/polexpr
parent9fab16cd89e27cc5b308ce410e11068285e63c3a (diff)
polexpr (12feb19)
git-svn-id: svn://tug.org/texlive/trunk@50013 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polexpr')
-rw-r--r--Master/texmf-dist/tex/latex/polexpr/polexpr.sty7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/polexpr/polexpr.sty b/Master/texmf-dist/tex/latex/polexpr/polexpr.sty
index 5aca52408c7..e9509d89428 100644
--- a/Master/texmf-dist/tex/latex/polexpr/polexpr.sty
+++ b/Master/texmf-dist/tex/latex/polexpr/polexpr.sty
@@ -1,7 +1,7 @@
% author: Jean-François Burnol
% License: LPPL 1.3c (author-maintained)
\ProvidesPackage{polexpr}%
- [2019/02/04 v0.7.3 Polynomial expressions with rational coefficients (JFB)]%
+ [2019/02/12 v0.7.4 Polynomial expressions with rational coefficients (JFB)]%
\RequirePackage{xintexpr}[2018/06/17]% xint 1.3c for \ifxintglobaldefs boolean
\edef\POL@restorecatcodes
{\catcode`\noexpand\_ \the\catcode`\_ %
@@ -1021,7 +1021,7 @@
\edef\POL@findrat@halflocalW{\the\numexpr(\POL@findrat@localW+1)/2-1}%
% Legendre Theorem will be used now but we separate a branch where
% everything can be done with \numexpr
- \ifnum\POL@findrat@localW>10
+ \ifnum\POL@findrat@localW>9
% not implemented yet by lazyness!
% this root will be handled in second pass only
\else
@@ -1047,12 +1047,13 @@
\def\POL@findrat@gcdloop@p{%
\edef\POL@findrat@gcdloop@Ap{\xintDec{\xintDouble\POL@IsoRight@Int}}%
\edef\POL@findrat@gcdloop@A
+ % at most 2e9: this is acceptable to \numexpr
{2\romannumeral\xintreplicate\POL@findrat@localW{0}}%
\xintAssign
\xintiiDivision\POL@findrat@gcdloop@Ap\POL@findrat@gcdloop@A
\to\POL@findrat@gcdloop@B\POL@findrat@gcdloop@An
% on fait de la tambouille pour n'utiliser que \numexpr par la suite
- % le reste @An est < 2.10^10 au pire donc ok pour \numexpr
+ % le reste @An est < 2.10^9 au pire donc ok pour \numexpr
% we will drop integral part in our updating P
\let\POL@findrat@gcdloop@Binitial\POL@findrat@gcdloop@B
\def\POL@findrat@gcdloop@B{0}% do as if B1 = 0