diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-10-21 17:24:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-10-21 17:24:07 -0700 |
commit | 1ee6aaab0b0bf42576b5c7951805e05e695a7148 (patch) | |
tree | 3f5b71867efc0e85fc0c98c716a2faaccee38ce8 /txr.1 | |
parent | 5d7d623bbcbda34354972af2ce608b8e110b1d3e (diff) | |
download | txr-1ee6aaab0b0bf42576b5c7951805e05e695a7148.tar.gz txr-1ee6aaab0b0bf42576b5c7951805e05e695a7148.tar.bz2 txr-1ee6aaab0b0bf42576b5c7951805e05e695a7148.zip |
* txr.1: Fixed documentation bug. expt with three or more
arguments is a right-associative reduction, not left.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -8848,9 +8848,12 @@ Description: The expt function raises <base> to zero or more exponents given by the <exponent> arguments. (expt x) is equivalent to (expt x 1); and yields x for all x. -For three or more arguments, the operation is left associative. -That is to say, (expt x y z) is equivalent to (expt (expt x y) z) and -so forth. Exponentiation is done pairwise using a binary operation. +For three or more arguments, the operation is right associative. +That is to say, (expt x y z) is equivalent to (expt x (expt y z)) and +so forth, similarly to the way nested exponents work in standard algebraic +notation. + +Exponentiation is done pairwise using a binary operation. If both operands to this binary operation are integers, then the result is an integer. If either operand is a float, then the other operand is converted to a float, and a floating point exponentation |