summaryrefslogtreecommitdiffstats
path: root/arith.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-09-05 06:04:21 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-09-05 06:04:21 -0700
commit2a99dce03f1e4c0662e945280ed0dc4c919272df (patch)
tree298e0a784b91191e98f33330ecbb8cae176ab338 /arith.h
parent0f429919165a9b097c61ecb9c6e36111c379489a (diff)
downloadtxr-2a99dce03f1e4c0662e945280ed0dc4c919272df.tar.gz
txr-2a99dce03f1e4c0662e945280ed0dc4c919272df.tar.bz2
txr-2a99dce03f1e4c0662e945280ed0dc4c919272df.zip
New functions for polynomial evaluation.
* arith.c (poly, rpoly): New functions. (arith_init): Registered intrinsics poly and rpoly. * arith.h (poly, rpoly): Declared. * txr.1: Documented.
Diffstat (limited to 'arith.h')
-rw-r--r--arith.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arith.h b/arith.h
index 7b9ecc6b..3d45e1ed 100644
--- a/arith.h
+++ b/arith.h
@@ -49,6 +49,8 @@ val width(val num);
val bits(val obj);
val digpow(val n, val base);
val digits(val n, val base);
+val poly(val x, val seq);
+val rpoly(val x, val seq);
noreturn void do_mp_error(val self, mp_err code);
void arith_init(void);