summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/minifp/test1.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-05 23:41:08 +0000
committerKarl Berry <karl@freefriends.org>2013-02-05 23:41:08 +0000
commite9a0efc06e926644568e9975bdc6c46044423d36 (patch)
tree50e9c53cd8e0667eb030ea4af5bb6c553184db61 /Master/texmf-dist/doc/generic/minifp/test1.tex
parent5951dc20b924b01da871a6b772f7cd30f66e07fd (diff)
minifp (5feb13)
git-svn-id: svn://tug.org/texlive/trunk@29037 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/minifp/test1.tex')
-rw-r--r--Master/texmf-dist/doc/generic/minifp/test1.tex19
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/generic/minifp/test1.tex b/Master/texmf-dist/doc/generic/minifp/test1.tex
index 024e5c5a44d..c08127eb8b9 100644
--- a/Master/texmf-dist/doc/generic/minifp/test1.tex
+++ b/Master/texmf-dist/doc/generic/minifp/test1.tex
@@ -80,16 +80,16 @@ Exponential:\Rexp\y
Back to $21.34$:\Rpop\X\Rpush{21.34}\y
Square:\Rsq\y
\Rpop\X\Rpush{21.34}%
-\tracingmacros1
Inversion:\Rinv\y
-\tracingmacros0
\Rpop\X\Rpush{21.34}%
+\tracingmacros1
Floor:\Rfloor\y
+\tracingmacros0
\Rpop\X\Rpush{21.34}%
Ceiling:\Rceil\y
\Rpop\X\Rpush{21.34}%
Square root:\Rsqrt\y
-Now put $21.34$ and $12.34$ in that order:\Rpop\X\Rpush{21.34}\Rpush{12.34}\y
+Now push $21.34$ and $12.34$ in that order:\Rpop\X\Rpush{21.34}\Rpush{12.34}\y
Compare: \Rcmp
21.34 is\IFlt{}{ not} less than 12.34.
21.34 is\IFgt{}{ not} more than 12.34.
@@ -404,7 +404,16 @@ negative:^^J}
Square root of $8$:\MFPsqrt{8}\Z\w
Square root of $9$:\MFPsqrt{9}\Z\w
Square root of $10$:\MFPsqrt{10}\Z\w
- Square root of $1524157.65279684$ (should be exact):\MFPsqrt{1524157.65279684}\Z\w
+ Square root of $99$:\MFPsqrt{99}\Z\w
+ Square root of $500$:\MFPsqrt{500}\Z\w
+ Square root of $1000$:\MFPsqrt{1000}\Z\w
+ Square root of $5000$:\MFPsqrt{5000}\Z\w
+ Square root of $9999$:\MFPsqrt{9999}\Z\w
+Square root of $100000$:\MFPsqrt{100000}\Z\w
+Square root of $100000$:\MFPsqrt{100000}\Z\w
+Square root of $1500000$:\MFPsqrt{1500000}\Z\w
+Square root of $1524157.65279684$ (should be exact):\MFPsqrt{1524157.65279684}\Z\w
+Square root of $15000000$:\MFPsqrt{15000000}\Z\w
Square root of $99999998.00000001$ (should be exact):\MFPsqrt{99999998.00000001}\Z\w
Square root of $9999.99$:\MFPsqrt{9999.99}\Z\w
Square root of $9999.999 999$:\MFPsqrt{9999.999999}\Z\W
@@ -418,7 +427,7 @@ Subtract $Y-X$:\MFPsub\Y\X\Z\w
Subtract $X-X$:\MFPsub\X\X\Z\w
Subtract $Y-Y$:\MFPsub\Y\Y\Z\w
Multiply:\MFPmul\X\Y\Z\w
-Multiply $10^4\times10^4$:\MFPmul{10000}{10000}\Z\w
+Multiply $10^{4}\times10^4$ (loses the overflow digit):\MFPmul{10000}{10000}\Z\w
Divide $X/Y$:\MFPdiv\X\Y\Z\w
Divide $Y/X$:\MFPdiv\Y\X\Z\w
Max:\MFPmax\X\Y\Z\w