Add `tanh' with documentation.

svn: r14250
This commit is contained in:
Sam Tobin-Hochstadt 2009-03-24 17:48:11 +00:00
parent 7362da34a9
commit e0a95e9e22
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@
(provide pi
sqr
sgn conjugate
sinh cosh)
sinh cosh tanh)
(define (sqr z) (* z z))
@ -29,3 +29,5 @@
(define (cosh x)
(/ (+ (exp x) (exp (- x))) 2.0))
(define (tanh x) (/ (sinh x) (cosh x)))

View File

@ -890,6 +890,10 @@ Returns the hyperbolic sine of @scheme[z].}
Returns the hyperbolic cosine of @scheme[z].}
@defproc[(tanh [z number?]) number?]{
Returns the hyperbolic tangent of @scheme[z].}
@; ----------------------------------------------------------------------
@close-eval[math-eval]