I’m doubtful of any interest, but in the odd chance that someone else
might want to play, I’m posting this code. If someone does look, all
comments are welcome (be it ruby style or corrections)!
Attached is a small library that calculates comological distances
(like light travel time, comoving distances, age of the universe,
angular size of the horizon) given a specific cosmology. This is
something I threw together for personal use in solving a homework
problem or two and making some quick estimates. References are
included in the comments for further information.
It requires the ruby GSL bindings (http://rb-gsl.rubyforge.org) for
The library also includes some sample usage at the end (which is
invoked if the script is just run from the command line).
p.s. to interested parties, the science / calculations are pretty well
described by Ned Wright’s page: