diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/generic/minifp/README | 3 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/minifp/minifp.pdf | bin | 421610 -> 430316 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/minifp/test1.tex | 31 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/minifp/test2.tex | 4 |
4 files changed, 34 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/generic/minifp/README b/Master/texmf-dist/doc/generic/minifp/README index 065bac29198..5f488bf27f3 100644 --- a/Master/texmf-dist/doc/generic/minifp/README +++ b/Master/texmf-dist/doc/generic/minifp/README @@ -13,7 +13,7 @@ Purpose: Minifp should work in both LaTeX and plainTeX. - This is version 0.95. It should work reasonably well, barring any + This is version 0.96. It should work reasonably well, barring any bugs, but I expect to spend some time fine-tuning it before calling it version 1.0. @@ -83,6 +83,7 @@ Manifest: <http://comp.uark.edu/~luecking/tex/tex.html>. History: + Version 0.96: Added random number generator, based on random.tex Version 0.95: More testing. Changed square root of negative from an error to a warning. Documentation updated. Now mfpextra checks for minifp.sty and inputs it if needed. diff --git a/Master/texmf-dist/doc/generic/minifp/minifp.pdf b/Master/texmf-dist/doc/generic/minifp/minifp.pdf Binary files differindex d08a688cf76..0fffe0ad383 100644 --- a/Master/texmf-dist/doc/generic/minifp/minifp.pdf +++ b/Master/texmf-dist/doc/generic/minifp/minifp.pdf diff --git a/Master/texmf-dist/doc/generic/minifp/test1.tex b/Master/texmf-dist/doc/generic/minifp/test1.tex index 2956afa3fe6..52b8d138fad 100644 --- a/Master/texmf-dist/doc/generic/minifp/test1.tex +++ b/Master/texmf-dist/doc/generic/minifp/test1.tex @@ -70,8 +70,8 @@ Sine:\Rsin\y Cosine:\Rcos\y \Rpop\X\Rpush{21.34}% Radians to degrees:\Rdeg\y - \Rpop\X\Rpush{21.34}% -Degrees to radians :\Rrad\y + \Rpop\X\Rpush{-21.34}% +Degrees to radians (negative):\Rrad\y \Rpop\X\Rpush{21.34}% Common logarithm:\Rlog\y \Rpop\X\Rpush{21.34}% @@ -90,6 +90,18 @@ Floor:\Rfloor\y Ceiling:\Rceil\y \Rpop\X\Rpush{21.34}% Square root:\Rsqrt\y + \Rpop\X\Rpush{21.34}% +Random number:\Rrand\y + \Rpop\X\Rpush{21.34}% +% restart with second generator +\MFPsetseed0 +\MFPrandgenB +Another:\Rrand\y + \Rpop\X\Rpush{21.34}% +% restart with third generator +\MFPsetseed0 +\MFPrandgenC +Another:\Rrand\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. @@ -188,7 +200,20 @@ Natural logarithm of {\tt X}:\MFPln\X\Z\w number:^^J}% Natural Logarithm of {\tt Y}:\MFPln\Y\Z\w Exponential of {\tt X}:\MFPexp\X\Z\w - Exponential of {\tt Y}:\MFPexp\Y\Z\W + Exponential of {\tt Y}:\MFPexp\Y\Z\w + Square root of {\tt X}:\MFPsqrt\X\Z\w + Square root of {\tt Y}:\MFPsqrt\Y\Z\w +\MFPrandgenA +Random number less than {\tt X}:\MFPrand\X\Z\w +Random number less than {\tt Y}:\MFPrand\Y\Z\w +\MFPsetseed0 +\MFPrandgenB + Another less than {\tt X}:\MFPrand\X\Z\w + Another less than {\tt Y}:\MFPrand\Y\Z\w +\MFPsetseed0 +\MFPrandgenC + Another less than {\tt X}:\MFPrand\X\Z\w + Another less than {\tt Y}:\MFPrand\Y\Z\w \filbreak {\bf Extra tests of sine}\\ diff --git a/Master/texmf-dist/doc/generic/minifp/test2.tex b/Master/texmf-dist/doc/generic/minifp/test2.tex index 6d6398a8976..c861032595b 100644 --- a/Master/texmf-dist/doc/generic/minifp/test2.tex +++ b/Master/texmf-dist/doc/generic/minifp/test2.tex @@ -104,6 +104,7 @@ with {\tt\string\pdfelapsedtime}. 2.54321\times22432.87654321 &0.046\cr 22432.87654321/2.54321 &0.11\cr \sqrt{23456789.54321} &0.172\cr +\mathop{\fam0 rand}(23456789.54321) &0.105\cr 1.00001234^{8000} &0.72\cr \exp(2.54321) &0.42\cr \sin(2.54321) &0.41\cr @@ -153,6 +154,7 @@ the 32-bit hardware.) \Rpop\X\Rpush{21.34}\Rfloor \Rpop\X\Rpush{21.34}\Rceil \Rpop\X\Rpush{21.34}\Rsqrt +\Rpop\X\Rpush{21.34}\Rrand \Rpop\X\Rpush{21.34}\Rpush{12.34}\Rcmp \IFlt{}{}\IFgt{}{}\IFeq{}{}\Rsub \IFneg{}{}\IFpos{}{}\IFzero{}{}\Rpop\X @@ -250,6 +252,8 @@ the 32-bit hardware.) \MFPexp{8}\Z \MFPexp{9}\Z \MFPexp{10}\Z +\MFPsqrt{10}\Z +\MFPrand{10}\Z \MFPexp{-8.3254}\Z \MFPpow\MFPe{-10}\Z \MFPpow\MFPe{-9}\Z |