uh, I think what you meant to reference was the Pythagorean's Theorem for a right triangle.
(where the sum of the square roots of the perpendicular sides are equal to the square of the hypotenuse - the diagonal which connects them)
a^2 + b^2 = c^2
Your case only holds true for an isosceles triangle in which the vertext angle measures 90 degrees.