```python
import math

def otherside_rightangle(w, h):
  """
  Calculates the length of the hypotenuse of a right-angled triangle,
  given the lengths of the other two sides (legs).
  """
  hypotenuse = math.hypot(w, h)
  return hypotenuse

```