v = 3.141592
100.times {
 v = (v + 2.0/v) / 2.0
}
puts v