fixed deriv test
This commit is contained in:
parent
020fb01bd5
commit
65aafdd66d
@ -3,6 +3,7 @@
|
||||
[propeller.tools.calculus :as c]))
|
||||
(t/deftest deriv_test
|
||||
(t/is (letfn [(cubic [x] (let [a (double x)] (* a a a)))]
|
||||
(= (c/deriv (cubic 2)) 2.0))
|
||||
(< (max (- (c/deriv cubic 2) 12) (- (- (c/deriv cubic 2) 12))) 0.001)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user