Clicky
Showing changes from revision #2 to #3:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
hypot(x,y)
is the Euclidean distance function. It is equal to (削除) (追記) (追記ここまで), without undue underflow or overflow.\\sqrt{X^2 + Y^2}
(削除ここまで)
Fortran 2008 and later
result = hypot(x, y)
x
- The type shall be real
.y
- The type and kind type parameter shall be the same as x
.The return value has the same type and kind type parameter as x
.
program test_hypot
real(4) :: x = 1.e0_4, y = 0.5e0_4
x = hypot(x,y)
end program test_hypot