Actually this note is for myself using,
thus you may not understand what it is.
It's O.K that you just close the window =P
1. Run FinkCommander to install "gsl" package.
2. Write an example.c C file:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK5lGf5EwK7pmCJFsMsF7eaYhnFARdNGgkPApyZaDB3OCrIWXmO6BtNEtmtk3KPS-BhsAGF112yrtPn4uqCgy-XfaIhUZYPUmOCiun9iiPpWosfSaLTq0d1YdgTXAvrXwpUHJ7EeHpO10/s320/2007-10-02_0559.png)
3. There are 2 steps:
a) gcc -Wall -I/sw/include -c example.c
b) gcc -L/sw/lib example.o -lgsl -lgslcblas -lm
then we'll get the "a.out" file.
Run the "a.out" and the output will be ~
$> "J0(5) = -1.775967713143383198e-01"
but in GSL's Manual...
it's "J0(5) = -1.775967713143382920e-01".../sigh
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsdhUDSzOMAR3m8ZHpmZxhsdOjgYe1suZGL6tW4lqi5m2hHtzaMWiZ92FcJR_N3TBQq7B3HmmKAUGCWo03zJ3Sp7I_ptuPKR7V5PSGlN2O1BVztKNjxHBonD6Kt0rF8tIJEXDfKy3SDcE/s320/2007-10-09_0319.png)
沒有留言:
張貼留言