diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 23:31:16 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-13 23:31:16 -0800 |
commit | e54cd7d4d63d866bf17576d3cac72d6ae51cbcfa (patch) | |
tree | e35722efff193a2af3597c5d484e35fa44d7b3e4 /txr.1 | |
parent | 4433aa4b693a9d0246788aff9acb12a8470edf6f (diff) | |
download | txr-e54cd7d4d63d866bf17576d3cac72d6ae51cbcfa.tar.gz txr-e54cd7d4d63d866bf17576d3cac72d6ae51cbcfa.tar.bz2 txr-e54cd7d4d63d866bf17576d3cac72d6ae51cbcfa.zip |
Fix omission: the / function becomes n-ary.
* eval.c (eval_init): Register / function to divv instead of divi.
* lib.c (divv): New function.
* lib.h (divv): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -26837,7 +26837,7 @@ A character may not be an operand of multiplication. .coNP Functions @, / @ trunc, @ mod and @ trunc-rem .synb -.mets (/ <> [ dividend ] << divisor ) +.mets (/ <> [ dividend ] << divisor *) .mets (trunc < dividend << divisor ) .mets (mod < dividend << divisor ) .mets (trunc-rem < dividend << divisor ) @@ -26853,7 +26853,11 @@ converted to floating-point type, if necessary. If is omitted, then it is taken to be .code 1.0 -and the function calculates the reciprocal. +and the function calculates the reciprocal. Of these division functions, +only this one may be called with just one argument, or with more than two +arguments. If there are more than two arguments, then each additional argument +is treated as an additional divisor which further divides the result of the +division by the previous divisors. The .code trunc |