Numerical/Scientific programming ruby group

Hello all,

I’m very interested in getting in contact with other rubyists who are
interested in numerical methods/scientific programming. In particular
I’m interesting in finding what’s currently available in terms of math
libraries.

Cheers
Gordon

Hi Gordon,

Gordon James Miller wrote:

Hello all,

I’m very interested in getting in contact with other rubyists who are
interested in numerical methods/scientific programming. In particular
I’m interesting in finding what’s currently available in terms of math
libraries.

I’d be vaguely interested in this, because I’ve been doing a lot of numerical stuff at uni lately.

I used Ruby and BigFloat to prototype a couple of different things last semester. This semester, I’m doing two subjects called Computational Science; one in C and the other in MatLab. I’ll probably use Ruby to prototype some of the C stuff again.

If you start up such a group, I’ll certainly sign up, but whether I can contribute much, I don’t know, since I’m just an interested novice in that area.

Cheers,

Harry O.

Gordon James Miller gmiller@bittwiddlers.com wrote in message news:1061345937.1019.2.camel@localhost

Hello all,

I’m very interested in getting in contact with other rubyists who are
interested in numerical methods/scientific programming. In particular
I’m interesting in finding what’s currently available in terms of math
libraries.

Cheers
Gordon
Hello,
for the math libraries you can have a look at the RAA
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Math
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=Numerical
etc…

I would be happy to share experience concerning numerics with ruby. I
use the gsl libraries and also played a little bit with narray.

Concerning the gsl libraries(there are two version, both incomplete
but usable), i wonder if they are still maintained, its a long time
they were not updated. But i’d really like to see some advance in that
field.

Ciao

Denis

Gordon James Miller wrote:

Hello all,

I’m very interested in getting in contact with other rubyists who are
interested in numerical methods/scientific programming. In particular
I’m interesting in finding what’s currently available in terms of math
libraries.

I’m using ruby (plus generated C code) to do hybrid systems simulations
(finite state machines plus ODEs with RK4 integration). Ruby is a nice
environment for that.

Saluton!

  • Gordon James Miller; 2003-08-20, 11:03 UTC:

Hello all,

I’m very interested in getting in contact with other rubyists who are
interested in numerical methods/scientific programming.

In particular I’m interesting in finding what’s currently available
in terms of math libraries.

Mathematical functions supported by Ruby 1.8’s Math library

acos, acosh, asin, asinh, atan, atan2, atanh, cos, cosh, erf,
erfc, exp, frexp, hypot, ldexp, log, log10, sin, sinh, sqrt, tan,
tanh

Additional functions provided by soon-to-be-released Extmath library

abs, acot, acoth, beta, ceil, cosec, cosech, cot, coth, exp10,
exp2, factorial, floor, gamma, gcd, lcm, ln_gamma, log2, pwr,
root, sec, sech, sign, sinc, sqr

Note that factorial, gcd and lcm operate on integer arguments.

I plan to release Extmath before weekend (on Rubyforge).

Gis,

Josef ‘Jupp’ Schugt

···


N’attribuez jamais à la malice ce que l’incompétence explique !
– Napoléon

I used Ruby and BigFloat to prototype a couple of different things last
semester. This semester, I’m doing two subjects called Computational
Science; one in C and the other in MatLab. I’ll probably use Ruby to
prototype some of the C stuff again.
I coded portfolio optimization code and did a lot of prototyping
in octave (free Matlab look-alike) and ruby, then after some profiling
wrote a few functions in C and kept the rest in ruby and was happy. SWIG
is good for easily getting your C-code playing nicely along with ruby.

At the beginning as I had tons of existing octave code, I simply set up
a pipe with octave to farm out some computation.

Additionaly you might want to look at the ruby-bindings of the gsl-library.
http://raa.ruby-lang.org/list.rhtml?name=ruby-gsl

Good luck,
-A.

···

Armin Roehrl, http://www.approximity.com
We manage risk

Armin Roehrl wrote:

I used Ruby and BigFloat to prototype a couple of different things
last semester. This semester, I’m doing two subjects called
Computational Science; one in C and the other in MatLab. I’ll
probably use Ruby to prototype some of the C stuff again.

I coded portfolio optimization code and did a lot of prototyping
in octave (free Matlab look-alike) and ruby, then after some profiling
wrote a few functions in C and kept the rest in ruby and was happy. SWIG
is good for easily getting your C-code playing nicely along with ruby.

At the beginning as I had tons of existing octave code, I simply set up
a pipe with octave to farm out some computation.

Additionaly you might want to look at the ruby-bindings of the gsl-library.
http://raa.ruby-lang.org/list.rhtml?name=ruby-gsl

Good luck,
-A.


Armin Roehrl, http://www.approximity.com
We manage risk

I was doing some prime number stuff in Ruby but got caught out by the fact
that some operations converted to floats and then back into bignum. The square
root function for example.

I ended up back in C with GMP - after having gotten the algorythms sorted out
in Ruby.