summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-03-22 10:48:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-03-22 10:48:00 -0700
commit1ccc6d458fbda380233019a1d80d5aff576d9d03 (patch)
tree97e9057e446ac2e19f265ebe829634b46e81f79c /txr.1
parent946c88ae095260a816aae8e1d5eacb32e4424718 (diff)
downloadtxr-1ccc6d458fbda380233019a1d80d5aff576d9d03.tar.gz
txr-1ccc6d458fbda380233019a1d80d5aff576d9d03.tar.bz2
txr-1ccc6d458fbda380233019a1d80d5aff576d9d03.zip
Fix sqrt confusion. There must be a separate isqrt
for the integer square root. * arith.c (sqroot_fixnum): Renamed back to isqrt_fixnum. (sqroot): Rewritten to handle only floating-point square root. (isqrt): New function, based on previous sqroot, handles only integers. * eval.c (eval_init): New intrinsic, isqrt. * lib.h (isqrt): New declaration. * txr.1: Doc stubs. * txr.vim: Highlighting for isqrt.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.18
1 files changed, 6 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index 280da48e..9a8e4d80 100644
--- a/txr.1
+++ b/txr.1
@@ -6641,9 +6641,9 @@ symbols, packages, or streams are equal if they are the same hash.
Certain object types have a custom equal function.
-.SS Arithmetic functions +, -, *, /, trunc, mod, expt, sqrt
+.SS Arithmetic functions +, -, *
-.SS Arithmetic function exptmod
+.SS Arithmetic function /, trunc, mod
.SS Arithmetic function gcd
@@ -6651,6 +6651,10 @@ Certain object types have a custom equal function.
.SS Arithmetic functions floor, ceil, sin, cos, atan, log
+.SS Arithmetic functions expt, sqrt, isqrt
+
+.SS Arithmetic function exptmod
+
.SS Functions fixnump, bignump, integerp, floatp, numberp
.SS Functions zerop, evenp, oddp