Ruby equivalents to SciPy, NumPy


I want to use Ruby to do some scientific computing for university and
was wondering, if there are any gems or language intern features that
could help me to accomplish this tasks.

Some of my colleagues use Python and they can use NumPy or orther SciPy
features to do computations and produce graphic output just like in
Are there any equivalents for Ruby?


Alexander J. wrote:

Hi Alexander,
I have quite good experience with the bindings to Gnu Scientific Library
(GSL:, rb-gsl: there is also another bindings package:

As you may know, narray ( is a fast
multidimensional array implementation, and it is interoperable with
rb-gsl ( If you install
‘plotutils’ and ‘gnuplot’ (+ its ruby gem), you will be able to use
GSL’s plotting facilities (,
graph -> plotutils, plot -> gnuplot). After all, it felt like using
matlab to me. Having a ruby as a fully features language by your side
makes it even more powerfull.

If you’re looking for statistical analysis, rsruby
(, ruby bindings to R.

Another important issue is IO. If you have CSV-like files, GSL can read
the directly, or you can let ruby to that. If you have netcdf
(, , grib
( or hdf5
(, you have to look for libraries.

best regards

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs