Numerical calculation of coupled oscillators on Ruby