find the length of the diagonal of: (a) square in terms of its edge a; (b) a rectangle in terms of iys base b and its altitude h.