Calculate the length of a shorter side in a right-angled triangle.