summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README28
1 files changed, 20 insertions, 8 deletions
diff --git a/README b/README
index 8c6f954..00188ce 100644
--- a/README
+++ b/README
@@ -10,10 +10,10 @@ INSTALLATION
10(More detailed information is included in the "tutorial", 10(More detailed information is included in the "tutorial",
11available in the web page of the project.) 11available in the web page of the project.)
12 12
13$ runhaskell Setup.hs configure --prefix=$HOME 13$ runhaskell Setup.lhs configure --prefix=$HOME
14$ runhaskell Setup.hs build 14$ runhaskell Setup.lhs build
15$ runhaskell Setup.hs haddock 15$ runhaskell Setup.lhs haddock
16$ runhaskell Setup.hs install --user 16$ runhaskell Setup.lhs install --user
17 17
18USING ATLAS 18USING ATLAS
19 19
@@ -27,11 +27,23 @@ $ runhaskell examples/tests.hs
27EXAMPLES 27EXAMPLES
28 28
29$ ghci 29$ ghci
30Prelude> :m + GSL 30Prelude> :m + Numeric.GSL
31Prelude GSL> let quad = integrateQNG 1E-10 31Prelude Numeric.GSL> let quad = integrateQNG 1E-10
32Prelude GSL> quad (^2) 0 1 32Prelude Numeric.GSL> quad (^2) 0 1
33(0.3333333333333333,3.700743415417188e-15) 33(0.3333333333333333,3.700743415417188e-15)
34Prelude GSL> :q 34
35Prelude Numeric.GSL> :m + Numeric.LinearAlgebra
36Prelude Numeric.LinearAlgebra> let m = (2><3)[1,2,3,4,5,6::Double]
37Prelude Numeric.LinearAlgebra> let (u,d,v) = full svd m
38Prelude Numeric.LinearAlgebra> d
39(2><3)
40 [ 9.508032000695724, 0.0, 0.0
41 , 0.0, 0.7728696356734838, 0.0 ]
42Prelude Numeric.LinearAlgebra> u <> d <> trans v
43(2><3)
44 [ 1.0000000000000004, 2.0, 3.0
45 , 3.9999999999999996, 5.000000000000001, 6.0 ]
46Prelude Numeric.GSL> :q
35Leaving GHCi. 47Leaving GHCi.
36 48
37-------------------------------------------------------------------------------------- 49--------------------------------------------------------------------------------------