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.sty62
1 files changed, 23 insertions, 39 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintgcd.sty b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
index a270186f4ed..24bd6ef2109 100644
--- a/Master/texmf-dist/tex/generic/xint/xintgcd.sty
+++ b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
%%
%%----------------------------------------------------------------
-%% The xint bundle (version 1.02 of April 5, 2013)
+%% The xint bundle (version 1.03 of April 14, 2013)
%% xintgcd: Euclidean algorithm with xint package
%% Copyright (C) 2013 by Jean-Francois Burnol
%%----------------------------------------------------------------
@@ -162,20 +162,18 @@
\fi
\expandafter\x\csname ver@xintgcd.sty\endcsname
\ProvidesPackage{xintgcd}%
- [2013/04/05 v1.02 Euclide algorithm with xint package (jfB)]%
+ [2013/04/14 v1.03 Euclide algorithm with xint package (jfB)]%
\def\xintGCD {\romannumeral0\xintgcd }%
\def\xintgcd #1%
{%
- \expandafter
- \XINT@gcd
- \expandafter
- {\romannumeral0\xintabs {#1}}%
+ \expandafter \XINT@gcd \expandafter
+ {\romannumeral0\xintiabs {#1}}%
}%
\def\XINT@gcd #1#2%
{%
\expandafter
\XINT@gcd@fork
- \romannumeral0\xintabs {#2}\Z #1\Z
+ \romannumeral0\xintiabs {#2}\Z #1\Z
}%
\def\XINT@gcd@fork #1#2\Z #3#4\Z
{%
@@ -255,10 +253,8 @@
}%
\def\XINT@bezout@mm@post #1#2%
{%
- \expandafter
- \XINT@bezout@mm@postb
- \expandafter
- {\romannumeral0\xintopp{#2}}{\romannumeral0\xintopp{#1}}%
+ \expandafter \XINT@bezout@mm@postb \expandafter
+ {\romannumeral0\xintiopp{#2}}{\romannumeral0\xintiopp{#1}}%
}%
\def\XINT@bezout@mm@postb #1#2%
{%
@@ -277,10 +273,8 @@
}%
\def\XINT@bezout@mp@post #1#2%
{%
- \expandafter
- \XINT@bezout@mp@postb
- \expandafter
- {\romannumeral0\xintopp {#2}}{#1}%
+ \expandafter \XINT@bezout@mp@postb \expandafter
+ {\romannumeral0\xintiopp {#2}}{#1}%
}%
\def\XINT@bezout@mp@postb #1#2#3#4#5%
{%
@@ -293,10 +287,8 @@
}%
\def\XINT@bezout@pm@post #1%
{%
- \expandafter
- \XINT@bezout@pm@postb
- \expandafter
- {\romannumeral0\xintopp{#1}}%
+ \expandafter \XINT@bezout@pm@postb \expandafter
+ {\romannumeral0\xintiopp{#1}}%
}%
\def\XINT@bezout@pm@postb #1#2#3#4#5%
{%
@@ -319,18 +311,14 @@
}%
\def\XINT@bezout@loop@b #1#2#3#4#5#6#7#8%
{%
- \expandafter
- \XINT@bezout@loop@c
- \expandafter
- {\romannumeral0\xintadd{\XINT@Mul{#5}{#2}}{#7}}%
- {\romannumeral0\xintadd{\XINT@Mul{#6}{#2}}{#8}}%
+ \expandafter \XINT@bezout@loop@c \expandafter
+ {\romannumeral0\xintiadd{\XINT@Mul{#5}{#2}}{#7}}%
+ {\romannumeral0\xintiadd{\XINT@Mul{#6}{#2}}{#8}}%
{#1}{#3}{#4}{#5}{#6}%
}%
\def\XINT@bezout@loop@c #1#2%
{%
- \expandafter
- \XINT@bezout@loop@d
- \expandafter
+ \expandafter \XINT@bezout@loop@d \expandafter
{#2}{#1}%
}%
\def\XINT@bezout@loop@d #1#2#3#4#5%
@@ -364,16 +352,14 @@
\def\xintEuclideAlgorithm {\romannumeral0\xinteuclidealgorithm }%
\def\xinteuclidealgorithm #1%
{%
- \expandafter
- \XINT@euc
- \expandafter
- {\romannumeral0\xintabs {#1}}%
+ \expandafter \XINT@euc \expandafter
+ {\romannumeral0\xintiabs {#1}}%
}%
\def\XINT@euc #1#2%
{%
\expandafter
\XINT@euc@fork
- \romannumeral0\xintabs {#2}\Z #1\Z
+ \romannumeral0\xintiabs {#2}\Z #1\Z
}%
\def\XINT@euc@fork #1#2\Z #3#4\Z
{%
@@ -418,16 +404,14 @@
\def\xintBezoutAlgorithm {\romannumeral0\xintbezoutalgorithm }%
\def\xintbezoutalgorithm #1%
{%
- \expandafter
- \XINT@bezalg
- \expandafter
- {\romannumeral0\xintabs {#1}}%
+ \expandafter \XINT@bezalg \expandafter
+ {\romannumeral0\xintiabs {#1}}%
}%
\def\XINT@bezalg #1#2%
{%
\expandafter
\XINT@bezalg@fork
- \romannumeral0\xintabs {#2}\Z #1\Z
+ \romannumeral0\xintiabs {#2}\Z #1\Z
}%
\def\XINT@bezalg@fork #1#2\Z #3#4\Z
{%
@@ -450,8 +434,8 @@
\def\XINT@bezalg@b #1#2#3#4#5#6#7#8%
{%
\expandafter\XINT@bezalg@c\expandafter
- {\romannumeral0\xintadd {\xintMul {#6}{#2}}{#8}}%
- {\romannumeral0\xintadd {\xintMul {#5}{#2}}{#7}}%
+ {\romannumeral0\xintiadd {\xintiMul {#6}{#2}}{#8}}%
+ {\romannumeral0\xintiadd {\xintiMul {#5}{#2}}{#7}}%
{#1}{#2}{#3}{#4}{#5}{#6}%
}%
\def\XINT@bezalg@c #1#2#3#4#5#6%