Ruby/GSL

# Title: Ruby/GSL

## 1 Description

RubyGSL is a ruby interface to the GSL (GNU Scientific Library), for numerical computing with Ruby.

Ruby/GSL is developed with Ruby 1.8.2 and GSL 1.5 on MacOS X 10.3.4 (Darwin 7.4.0). This also runs under Linux, and Cygwin.

## 2 Installation

1. Get and install GSL
2. Download Ruby/GSL, ungzip and untar the archive `rb-gsl-xxx.tar.gz`.
3. `cd rb-gsl-xxx/`
4. Make sure the command "gsl-config" is in command search path.

5. `ruby setup.rb config`

   If you have the NArray extension, the following may be useful,

       % ruby setup.rb config -- --with-narray-include=<directory where 'narray.h' exsists>

6. `ruby setup.rb setup`
7. `ruby setup.rb install` (as root)

## 3 Screenshot

## 4 Reference

(See GSL reference manual, to confirm correspondence of GSL structs and functions with Ruby/GSL classes and methods.)

1. Introduction
2. Using the library
3. Error Handling
4. Mathematical Functions
5. Complex Numbers
6. Polynomials
7. Special Functions
8. Vectors and Matrices
9. Permutations
10. Combinations
11. Sorting
12. BLAS Support
13. Linear Algebra
14. Eigen Systems
15. Fast Fourier Transform
16. Numerical Integration
17. Random Numbers
18. Quasi-Random Sequences
19. Random Number Distributions
20. Statistics
21. 1d-Histograms and 2d-Histograms
22. N-tuples
23. Monte-Carlo Integration
24. Simulated Annealing
25. Ordinary Differential Equations
26. Interpolation
27. Numerical Differentiation
28. Chebyshev Approximations
29. Series Acceleration
30. Discrete Hankel Transforms
31. One dimensional Root-Finding
32. One dimensional Minimization
33. Multidimensional Root-Finding
34. Multidimensional Minimization
35. Least-Squares Fitting
36. Nonlinear Least-Squares Fitting
37. Physical Constants

## 5 Related Project

There is another similar project, ruby-gsl, which is independently developed by Arno Erpenbeck. You can find more information at ruby-gsl.sourceforge.net.

## 6 Licence

Ruby/GSL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

## 7 Bug Report

Any bug reports are welcome. If you encounter bugs in Ruby/GSL, please e-mail to me, or submit reports from RubyForge page.

## 8 Author

Yoshiki Tsunesada

Jul/2004