summaryrefslogtreecommitdiffstats
path: root/txr.1
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 /txr.1
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 'txr.1')
-rw-r--r--txr.122
1 files changed, 22 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 13f082f3..6d214246 100644
--- a/txr.1
+++ b/txr.1
@@ -38606,6 +38606,22 @@ and
.meta y
to an angle in polar coordinates in the range [0, 2\(*p).
+.coNP Functions @, sinh @, cosh @, tanh @, asinh @ acosh and @ atanh
+.synb
+.mets (sinh << argument )
+.mets (cosh << argument )
+.mets (tanh << argument )
+.mets (atanh << argument )
+.mets (asinh << argument )
+.mets (acosh << argument )
+.syne
+.desc
+These functions are the hyperbolic analogs of the trigonometric functions
+.codn sin ,
+.code cos
+and so forth. They convert their argument to floating point and
+return a float result.
+
.coNP Functions @, exp @, log @ log10 and @ log2
.synb
.mets (exp << arg )
@@ -40635,6 +40651,12 @@ arguments must be integers.
.um atan
.bmnl atan2
.bmnr r-atan2 atan2
+.um sinh
+.um cosh
+.um tanh
+.um asinh
+.um acosh
+.um atanh
.um log
.um log2
.um log10