Logo

Programming-Idioms

History of Idiom 200 > diff from v11 to v12

Edit summary for version 12 by setupminimal:
New Haskell implementation by user [setupminimal]

Version 11

2020-01-08, 17:26:37

Version 12

2020-04-29, 00:29:07

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
hypo x y = sqrt $ x**2 + y**2