diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-12-07 14:07:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-12-07 14:07:57 -0800 |
commit | 6a88c55cdf0bd3bd6fc33086529bf4e79fd1e03e (patch) | |
tree | 82f3c89dab1bdd8a577346802b0e01d9795a24a9 /lib.h | |
parent | f018af6fe6b0c867c747217890b8b02d8e6d7ffb (diff) | |
download | txr-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |