Calculate the hypotenuse, area, perimeter, and missing angles of a right-angled triangle given the lengths of its two legs (a and b) using the Pythagorean theorem.