Back
asin (clj)
(source)function
(asin a)
Returns the arc sine of an angle, in the range -pi/2 to pi/2.
If a is ##NaN or |a|>1 => ##NaN
If a is zero => zero with the same sign as a
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#asin-double-
Examples
clojure
(ns clojure.test-clojure.math
(:require
[clojure.test :refer :all]
[clojure.math :as m]))
(deftest test-asin
(is (NaN? (m/asin ##NaN)))
(is (NaN? (m/asin 2.0)))
(is (NaN? (m/asin -2.0)))
(is (zero? (m/asin -0.0))))