QuackatronHQ / Gigarepo

Pythagorean calculation detected with sub-optimal numerics PTC-W0028
Anti-pattern
Major
a month ago2 years old
Using sqrt to calculate hypotenuse may cause OverflowError
 2
 3
 4def side_height(length, breadth):
 5    value = sqrt(length**2 + breadth**2) 6    return value
 7    print("The side height is", value)
 8