Algorithms for Numerical Analysis subject in ruby