Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
(def x 2.0)
|
||||
(def xi 0.5)
|
||||
(def y 4.0)
|
||||
(def yi 0.25)
|
||||
(def z (+ x y))
|
||||
(def zi (/ 1.0 (+ x y)))
|
||||
|
||||
(def numbers [x y z])
|
||||
(def invers [xi yi zi])
|
||||
|
||||
(defn multiplier [a b]
|
||||
(fn [m] (* a b m)))
|
||||
|
||||
> (for [[n i] (zipmap numbers invers)]
|
||||
((multiplier n i) 0.5))
|
||||
(0.5 0.5 0.5)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(use 'clojure.contrib.math)
|
||||
(let [fns [#(Math/sin %) #(Math/cos %) (fn [x] (* x x x))]
|
||||
inv [#(Math/asin %) #(Math/acos %) #(expt % 1/3)]]
|
||||
(map #(% 0.5) (map #(comp %1 %2) fns inv)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue