Pythagorean Theorem in Cartesian Axis