Mathematical Ruby library