Add `tanh' with documentation.
svn: r14250
This commit is contained in:
parent
7362da34a9
commit
e0a95e9e22
|
@ -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)))
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user