How to calculate hypotenuse of right triangle with one length?