diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/apnum')
-rw-r--r-- | Master/texmf-dist/doc/generic/apnum/apnum.d | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/apnum/apnum.pdf | bin | 642960 -> 643161 bytes |
2 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/generic/apnum/apnum.d b/Master/texmf-dist/doc/generic/apnum/apnum.d index c52f660b26f..b612c363325 100644 --- a/Master/texmf-dist/doc/generic/apnum/apnum.d +++ b/Master/texmf-dist/doc/generic/apnum/apnum.d @@ -10,7 +10,7 @@ \input utf8off \clearmubyte % use pdfcsplain -\def\projectversion{1.4 Dec 2015} +\def\projectversion{1.4a Dec 2015} \def\headtitle{Arbitrary Precision Numbers} \widowpenalty=10000 @@ -536,9 +536,9 @@ The main task of the "\evaldef\x{\A+\B*(\C+\D)+\E}" is to prepare the macro "\apPLUS{\apPLUS{\A}{\apMUL{\B}{\apPLUS{\C}{\D}}}}{\E}" and to execute the "\tmpb" macro. -The expression scanner adds the "\end" at the end of the expression and +The expression scanner adds the "\limits" at the end of the expression and reads from left to right the couples ``operand, operator''. For our example: -"\A+", "\B*", "\C+", "\D+" and "\E\end". The "\end" operator has the +"\A+", "\B*", "\C+", "\D+" and "\E\limits". The "\limits" operator has the priority 0, plus, minus have priority 1, "*"~and~"/" have priority 2 and "^" has priority 3. The brackets are ignored, but each occurrence of the opening bracket "(" increases priority by 4 and each occurrence of closing bracket @@ -561,10 +561,10 @@ Now, the priority on the top is greater, then scanner pushes next couple and does the test on the top of the stack again. \begtt - \E \end 0 0<=1 exec: + \E \limits 0 0<=1 exec: {\A+{\B*{\C+\D}}} + 1 {{\A+{\B*{\C+\D}}}+\E} \end 0 0<=0 exec: bottom 0 bottom 0 RESULT -\endtt +\endtt Let $p_t$, $p_p$ are the priority on the top and the previous priority in the stack. Let $v_t$, $v_p$ are operands on the top and in the previous line in the stack, and the same notation is used for operators @@ -582,7 +582,7 @@ any usual application of this. The "\apEVALa" is executed. The macro \db apEVALa "<sequence>{<expression>}" runs the evaluation of the expression in the group. The base priority is initialized by "\apnumA=0", -then "\apEVALb<expression>\end" scans the expression and saves the +then "\apEVALb<expression>\limits" scans the expression and saves the result in the form "\apPLUS{\A}{\apMUL{\B}{\C}}" (etc.) into the "\tmpb" macro. This macro is executed. The group is finished by "\apEND" macro, which keeps the "\OUT", "\apSIGN" and "\apE" values unchanged. Finally the defined "<sequence>" is set diff --git a/Master/texmf-dist/doc/generic/apnum/apnum.pdf b/Master/texmf-dist/doc/generic/apnum/apnum.pdf Binary files differindex c1bc7a31b31..7be86bf0c01 100644 --- a/Master/texmf-dist/doc/generic/apnum/apnum.pdf +++ b/Master/texmf-dist/doc/generic/apnum/apnum.pdf |