summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-08-07 20:14:17 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-08-07 20:14:17 -0700
commit391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8 (patch)
tree79506c783370195c69ae42282af76fce0cbbbb62 /arith.h
parent78ab514b4f3b481ae006821520c6344768a529b3 (diff)
downloadtxr-391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8.tar.gz
txr-391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8.tar.bz2
txr-391abdde2d48aac8fc18978a1f3a26b9f0ae6bc8.zip
New divides function.
* arith.c (divides): New function. (arith_init): Intrinsic registered. * arith.h (divides): Declared. * txr.1: Documented.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arith.h b/arith.h
index 29e65706..235d4ba1 100644
--- a/arith.h
+++ b/arith.h
@@ -39,6 +39,7 @@ val unum(ucnum u);
val cum_norm_dist(val x);
val n_choose_k(val n, val k);
val n_perm_k(val n, val k);
+val divides(val d, val n);
val tofloat(val obj);
val toint(val obj, val base);
val tofloatz(val obj);