weak pythagorean theorem generator