# NOT RUN {
hypot(Inf, NaN) # still positive infinity
hypot(NaN, 0) # NaN
hypot(NA_real_, 0) # NaN
## numbers whose squares would overflow normally are handled well
hypot(.Machine$double.xmax, 5 )
hypot(1e+300 , 1e+300)
hypot(3, 4) # 5
# }
Run the code above in your browser using DataLab