Logo

Programming-Idioms

History of Idiom 200 > diff from v4 to v5

Edit summary for version 5 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 4

2019-09-29, 06:27:21

Version 5

2019-09-29, 08:44:08

Idiom #200 Return hypotenuse

Returns the hypotenuse h of the triangle where the sides adjacent to the square angle have lengths x and y.

Idiom #200 Return hypotenuse

Returns the hypotenuse h of the triangle where the sides adjacent to the square angle have lengths x and y.

Extra Keywords
pythagore square geometry trigo trigonometry
Extra Keywords
pythagore square geometry trigo trigonometry
Code
h = hypot(x,y)
Comments bubble
Requires Fortran 2008