length of hypotenuse of a right angled triangle by trigonometry