MCPcopy Create free account
hub / github.com/ActiveState/code / hypot

Method hypot

recipes/Python/578918_Yet_Another_NamedTuple/recipe-578918.py:189–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 class Point(namedtuple('Point', 'x y')):
188 @property
189 def hypot(self):
190 return (self.x ** 2 + self.y ** 2) ** 0.5
191 def __str__(self):
192 return 'Point: x=%6.3f y=%6.3f hypot=%6.3f' % (self.x, self.y, self.hypot)
193

Callers 15

cFunction · 0.45
recipe-577353.pyFile · 0.45
recipe-578198.pyFile · 0.45
recipe-578765.pyFile · 0.45
FishClass · 0.45
frCurveFunction · 0.45
recipe-578029.pyFile · 0.45
recipe-577917.pyFile · 0.45
recipe-577131.pyFile · 0.45
recipe-578459.pyFile · 0.45
recipe-577445.pyFile · 0.45
recipe-577841.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected