Back
sinh (clj)
(source)function
(sinh x)
Returns the hyperbolic sine of x, (e^x - e^-x)/2.
If x is ##NaN => ##NaN
If x is ##Inf or ##-Inf or zero => x
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#sinh-double-
Examples
clojure
(ns clojure.test-clojure.math
(:require
[clojure.test :refer :all]
[clojure.math :as m]))
(deftest test-sinh
(is (NaN? (m/sinh ##NaN)))
(is (= ##Inf (m/sinh ##Inf)))
(is (= ##-Inf (m/sinh ##-Inf)))
(is (= 0.0 (m/sinh 0.0))))