RosettaCodeData/Task/Roots-of-a-function/Clojure/roots-of-a-function.clj
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

2 lines
109 B
Clojure

(defn findRoots [f start stop step eps]
(filter #(-> (f %) Math/abs (< eps)) (range start stop step)))