Ruby/GSL, a Ruby interface to GSL (GNU Scientific library)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License.


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


Ruby/GSL may be installed as a Ruby Gem by simply running

gem install rb-gsl

Note that the GSL libraries must already be installed before Ruby/GSL can be installed.

It is recommended to install the GNU plotutils package. Some of the example scripts in the examples/ directory use the graph utility included in the package to plot the results. Windows cygwin binaries of GNU plotutils and related packages are available here.


The Ruby/GSL reference manual follows and borrows large parts of the GSL reference manual.


See scripts in examples/ and test/ directories.

Related Projects


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.

Bug Reports

Any bug reports are welcome. If you encounter bugs in Ruby/GSL, please report them on GitHub.


Source code


Bug tracker

Travis CI