Let the ratio be 1:r and the hypotenuse be h. Then the sides are then x and rx for some x. By the Pythagorean Theorem we get $x^2+r^2*x^2=h^2$. So $x=\sqrt{{h^2}/(1+r^2)}$. We can then calculate rx, the other side.
Let the ratio be 1:r and the hypotenuse be h. Then the sides are then x and rx for some x. By the Pythagorean Theorem we get $x^2+r^2*x^2=h^2$. So $x=\sqrt{{h^2}/(1+r^2)}$. We can then calculate rx, the other side.