summaryrefslogtreecommitdiff
path: root/packages/hmatrix/examples/deriv.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2014-05-21 10:30:55 +0200
committerAlberto Ruiz <aruiz@um.es>2014-05-21 10:30:55 +0200
commit197e88c3b56d28840217010a2871c6ea3a4dd1a4 (patch)
tree825be9d6c9d87d23f7e5497c0133d11d52c63535 /packages/hmatrix/examples/deriv.hs
parente07c3dee7235496b71a89233106d93f6cc94ada1 (diff)
update dependencies, move examples etc
Diffstat (limited to 'packages/hmatrix/examples/deriv.hs')
-rw-r--r--packages/hmatrix/examples/deriv.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/hmatrix/examples/deriv.hs b/packages/hmatrix/examples/deriv.hs
deleted file mode 100644
index c9456d1..0000000
--- a/packages/hmatrix/examples/deriv.hs
+++ /dev/null
@@ -1,8 +0,0 @@
1-- Numerical differentiation
2
3import Numeric.GSL
4
5d :: (Double -> Double) -> (Double -> Double)
6d f x = fst $ derivCentral 0.01 f x
7
8main = print $ d (\x-> x * d (\y-> x+y) 1) 1