summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xint/xintfrac.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xintfrac.sty')
-rw-r--r--Master/texmf-dist/tex/generic/xint/xintfrac.sty61
1 files changed, 23 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintfrac.sty b/Master/texmf-dist/tex/generic/xint/xintfrac.sty
index 36ea3fd20c6..d1d68aa2e96 100644
--- a/Master/texmf-dist/tex/generic/xint/xintfrac.sty
+++ b/Master/texmf-dist/tex/generic/xint/xintfrac.sty
@@ -22,7 +22,7 @@
%% in the same archive or directory.)
%%
%%----------------------------------------------------------------
-%% The xint bundle (version 1.09e of October 29, 2013)
+%% The xint bundle (version 1.09f of November 4, 2013)
%% xintfrac: Expandable operations on fractions
%% Copyright (C) 2013 by Jean-Francois Burnol
%%----------------------------------------------------------------
@@ -105,7 +105,7 @@
\XINTsetupcatcodes%
\XINT_providespackage
\ProvidesPackage{xintfrac}%
- [2013/10/29 v1.09e Expandable operations on fractions (jfB)]%
+ [2013/11/04 v1.09f Expandable operations on fractions (jfB)]%
\chardef\xint_c_vi 6
\chardef\xint_c_vii 7
\chardef\xint_c_xviii 18
@@ -444,7 +444,7 @@
\def\xintFloor {\romannumeral0\xintfloor }%
\def\xintfloor #1{\expandafter\XINT_floor
\romannumeral0\xintrawwithzeros {#1}.}%
-\def\XINT_floor #1/#2.{\xintiquo {#1}{#2}}%
+\def\XINT_floor #1/#2.{\xintiiquo {#1}{#2}}%
\def\xintCeil {\romannumeral0\xintceil }%
\def\xintceil #1{\xintiiopp {\xintFloor {\xintOpp{#1}}}}%
\def\xintNumerator {\romannumeral0\xintnumerator }%
@@ -690,8 +690,8 @@
\def\xint_irr_loop_exit0\XINT_irr_loop_a #1#2#3#4%
{%
\expandafter\XINT_irr_loop_exitb\expandafter
- {\romannumeral0\xintiquo {#3}{#2}}%
- {\romannumeral0\xintiquo {#4}{#2}}%
+ {\romannumeral0\xintiiquo {#3}{#2}}%
+ {\romannumeral0\xintiiquo {#4}{#2}}%
}%
\def\XINT_irr_loop_exitb #1#2%
{%
@@ -842,10 +842,10 @@
\krof
{#4}{#2}%
}%
-\def\XINT_trunc_minusminus #1#2{\xintiquo {#1}{#2}\Z \space}%
-\def\XINT_trunc_minusplus #1#2#3{\xintiquo {#1#2}{#3}\Z \xint_minus_andstop}%
-\def\XINT_trunc_plusminus #1#2#3{\xintiquo {#2}{#1#3}\Z \xint_minus_andstop}%
-\def\XINT_trunc_plusplus #1#2#3#4{\xintiquo {#1#3}{#2#4}\Z \space}%
+\def\XINT_trunc_minusminus #1#2{\xintiiquo {#1}{#2}\Z \space}%
+\def\XINT_trunc_minusplus #1#2#3{\xintiiquo {#1#2}{#3}\Z \xint_minus_andstop}%
+\def\XINT_trunc_plusminus #1#2#3{\xintiiquo {#2}{#1#3}\Z \xint_minus_andstop}%
+\def\XINT_trunc_plusplus #1#2#3#4{\xintiiquo {#1#3}{#2#4}\Z \space}%
\def\XINT_itrunc_G #1#2\Z #3#4%
{%
\xint_gob_til_zero #1\XINT_trunc_zero 0\xint_firstoftwo {#3#1#2}0%
@@ -1060,13 +1060,13 @@
\def\XINT_float_Ri #1#2#3%
{%
\expandafter\XINT_float_Sa
- \romannumeral0\xintiquo {#2}%
+ \romannumeral0\xintiiquo {#2}%
{\XINT_dsx_addzerosnofuss {-#1}{#3}}\Z {#1}%
}%
\def\XINT_float_Rii #1#2#3%
{%
\expandafter\XINT_float_Sa
- \romannumeral0\xintiquo
+ \romannumeral0\xintiiquo
{\XINT_dsx_addzerosnofuss {#1}{#2}}{#3}\Z {#1}%
}%
\def\XINT_float_Sa #1%
@@ -1171,13 +1171,13 @@
\def\XINT_infloat_Ri #1#2#3%
{%
\expandafter\XINT_infloat_S\expandafter
- {\romannumeral0\xintiquo {#2}%
+ {\romannumeral0\xintiiquo {#2}%
{\XINT_dsx_addzerosnofuss {-#1}{#3}}}{#1}%
}%
\def\XINT_infloat_Rii #1#2#3%
{%
\expandafter\XINT_infloat_S\expandafter
- {\romannumeral0\xintiquo
+ {\romannumeral0\xintiiquo
{\XINT_dsx_addzerosnofuss {#1}{#2}}{#3}}{#1}%
}%
\def\XINT_infloat_S #1#2#3%
@@ -1367,15 +1367,15 @@
{%
\expandafter\XINT_fpow_pos_A\expandafter
{\the\numexpr #1#2*#3\expandafter}\expandafter
- {\romannumeral0\xintipow {#5}{#1#2}}%
- {\romannumeral0\xintipow {#4}{#1#2}}%
+ {\romannumeral0\xintiipow {#5}{#1#2}}%
+ {\romannumeral0\xintiipow {#4}{#1#2}}%
}%
\def\XINT_fpow_neg #1#2#3#4%
{%
\expandafter\XINT_fpow_pos_A\expandafter
{\the\numexpr -#1*#2\expandafter}\expandafter
- {\romannumeral0\xintipow {#3}{#1}}%
- {\romannumeral0\xintipow {#4}{#1}}%
+ {\romannumeral0\xintiipow {#3}{#1}}%
+ {\romannumeral0\xintiipow {#4}{#1}}%
}%
\def\XINT_fpow_pos_A #1#2#3%
{%
@@ -1470,7 +1470,7 @@
\def\XINT_fgeq_D #1#2#3%
{%
\xintSgnFork
- {\xintiSgn{\the\numexpr #2+\xintLength{#3}-\xintLength{#1}\relax}}%
+ {\xintiiSgn{\the\numexpr #2+\xintLength{#3}-\xintLength{#1}\relax}}%
{ 0}{\XINT_fgeq_E #2\Z {#3}{#1}}{ 1}%
}%
\def\XINT_fgeq_E #1%
@@ -1691,7 +1691,7 @@
\def\XINT_fcmp_D #1#2#3%
{%
\xintSgnFork
- {\xintiSgn{\the\numexpr #2+\xintLength{#3}-\xintLength{#1}\relax}}%
+ {\xintiiSgn{\the\numexpr #2+\xintLength{#3}-\xintLength{#1}\relax}}%
{ -1}{\XINT_fcmp_E #2\Z {#3}{#1}}{ 1}%
}%
\def\XINT_fcmp_E #1%
@@ -1739,22 +1739,7 @@
{%
\expandafter\xint_fsgn\romannumeral0\XINT_infrac {#1}%
}%
-\def\xint_fsgn #1#2#3{\xintisgn {#2}}%
-\def\xintDivision {\romannumeral0\xintdivision }%
-\def\xintdivision #1%
-{%
- \expandafter\xint_xdivision\expandafter{\romannumeral0\xintnum {#1}}%
-}%
-\def\xint_xdivision #1#2%
-{%
- \expandafter\XINT_div_fork\romannumeral0\xintnum {#2}\Z #1\Z
-}%
-\def\xintQuo {\romannumeral0\xintquo }%
-\def\xintRem {\romannumeral0\xintrem }%
-\def\xintquo {\expandafter\xint_firstoftwo_andstop
- \romannumeral0\xintdivision }%
-\def\xintrem {\expandafter\xint_secondoftwo_andstop
- \romannumeral0\xintdivision }%
+\def\xint_fsgn #1#2#3{\xintiisgn {#2}}%
\def\xintFloatAdd {\romannumeral0\xintfloatadd }%
\def\xintfloatadd #1{\XINT_fladd_chkopt \xintfloat #1\Z }%
\def\XINTinFloatAdd {\romannumeral0\XINTinfloatadd }%
@@ -2120,7 +2105,7 @@
}%
\def\XINT_flpower_b #1#2[#3]#4#5%
{%
- \XINT_flpower_c {#4}{#5}{#2[#3]}{#1*\xintOdd {#5}}%
+ \XINT_flpower_c {#4}{#5}{#2[#3]}{#1*\xintiiOdd {#5}}%
}%
\def\XINT_flpower_c #1#2#3#4%
{%
@@ -2302,7 +2287,7 @@
\def\XINT_flsqrt_big_g #1#2%
{%
\expandafter\XINT_flsqrt_big_j
- \romannumeral0\xintidivision
+ \romannumeral0\xintiidivision
{#1}{\romannumeral0\XINT_dbl_pos #2\R\R\R\R\R\R\R\Z \W\W\W\W\W\W\W }{#2}%
}%
\def\XINT_flsqrt_big_j #1%
@@ -2329,7 +2314,7 @@
{\the\numexpr -#4+#5/\xint_c_ii\expandafter}\expandafter
{\romannumeral0\xintiisub
{\XINT_dsx_addzerosnofuss {#4}{#3}}%
- {\xintHalf{\xintiQuo{\XINT_dsx_addzerosnofuss {#4}{#2}}{#3}}}}%
+ {\xintHalf{\xintiiQuo{\XINT_dsx_addzerosnofuss {#4}{#2}}{#3}}}}%
}%
\def\XINT_flsqrt_big_end_b #1#2{#2[#1]}%
\XINT_restorecatcodes_endinput%