summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-12-07 14:07:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-12-07 14:07:57 -0800
commit6a88c55cdf0bd3bd6fc33086529bf4e79fd1e03e (patch)
tree82f3c89dab1bdd8a577346802b0e01d9795a24a9 /lib.h
parentf018af6fe6b0c867c747217890b8b02d8e6d7ffb (diff)
downloadtxr-6a88c55cdf0bd3bd6fc33086529bf4e79fd1e03e.tar.gz
txr-6a88c55cdf0bd3bd6fc33086529bf4e79fd1e03e.tar.bz2
txr-6a88c55cdf0bd3bd6fc33086529bf4e79fd1e03e.zip
Add hyperbolic functions: sinh, cosh, and others.
* arith.c (sinh_s, cosh_s, tanh_s, asinh_s, acosh_s, atanh_s): New symbol variables. (sinh, cosh, tanh, asinh, acosh, atanh): New static functions. (sineh, cosih, tangh, asineh, acosih, atangh): New functions. (arith_init): Register sinh, cosh, tanh, asinh, acosh and atanh intrinsic functions, and initialize the new symbol variables. * configure: Detect availability of hyperbolic functions in math library and defne HAVE_HYPERBOLICS as 1 in config.h accordingly. * lib.h (sineh, cosih, tangh, asineh, acosih, atangh): Declared. * txr.1: Documented new hyperbolic functions and their method counterparts that a numeric struct can implement.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 4ac4f3b1..276b8ecb 100644
--- a/lib.h
+++ b/lib.h
@@ -787,6 +787,12 @@ val asine(val);
val acosi(val);
val atang(val);
val atang2(val, val);
+val sineh(val);
+val cosih(val);
+val tangh(val);
+val asineh(val);
+val acosih(val);
+val atangh(val);
val loga(val);
val logten(val num);
val logtwo(val num);