Uh, not sure if the Egyptians were using Pythagoras's theorem, but because the pyramids are right square pyramids, the square of its slope (hypotenuse or the length of one of its sides up the pyramid) will be equal to the sum of the squares of 1/2 its base width and its height