diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/minifp/test1.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/minifp/test1.tex | 31 |
1 files changed, 28 insertions, 3 deletions
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}\\ |