summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xint/xintgcd.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xintgcd.sty')
-rw-r--r--Master/texmf-dist/tex/generic/xint/xintgcd.sty22
1 files changed, 20 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintgcd.sty b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
index ec42410dc1c..7d6cd8d12c4 100644
--- a/Master/texmf-dist/tex/generic/xint/xintgcd.sty
+++ b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% ---------------------------------------------------------------
-%% The xint bundle v1.1 (2014/10/28)
+%% The xint bundle v1.1a (2014/11/07)
%% Copyright (C) 2013-2014 by Jean-Francois Burnol
%% xintgcd: Euclidean algorithm with xint package
%% ---------------------------------------------------------------
@@ -70,7 +70,7 @@
\XINTsetupcatcodes% defined in xintkernel.sty
\XINT_providespackage
\ProvidesPackage{xintgcd}%
- [2014/10/28 v1.1 Euclide algorithm with xint package (jfB)]%
+ [2014/11/07 v1.1a Euclide algorithm with xint package (jfB)]%
\def\xintGCD {\romannumeral0\xintgcd }%
\def\xintgcd #1%
{%
@@ -80,6 +80,15 @@
{%
\expandafter\XINT_gcd_fork\romannumeral0\xintiabs {#2}\Z #1\Z
}%
+\def\xintiiGCD {\romannumeral0\xintiigcd }%
+\def\xintiigcd #1%
+{%
+ \expandafter\XINT_iigcd\expandafter{\romannumeral0\xintiiabs {#1}}%
+}%
+\def\XINT_iigcd #1#2%
+{%
+ \expandafter\XINT_gcd_fork\romannumeral0\xintiiabs {#2}\Z #1\Z
+}%
\def\XINT_gcd_fork #1#2\Z #3#4\Z
{%
\xint_UDzerofork
@@ -113,6 +122,15 @@
{%
\expandafter\XINT_lcm_fork\romannumeral0\xintiabs {#2}\Z #1\Z
}%
+\def\xintiiLCM {\romannumeral0\xintiilcm}%
+\def\xintiilcm #1%
+{%
+ \expandafter\XINT_iilcm\expandafter{\romannumeral0\xintiiabs {#1}}%
+}%
+\def\XINT_iilcm #1#2%
+{%
+ \expandafter\XINT_lcm_fork\romannumeral0\xintiiabs {#2}\Z #1\Z
+}%
\def\XINT_lcm_fork #1#2\Z #3#4\Z
{%
\xint_UDzerofork