Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Peter Wittenberg

View profile information

Personal Profile

Professional Interests: Signal Processing

Professional Interests

Signal Processing


Peter Wittenberg submitted a Comment to Problem 313. Pythagorean perfect squares: find the square of the hypotenuse and the length of the other side

There's a problem with the solution suite. For seed=12 and n=16, the proposed answer of 5, 12, 13 as a Pythagorean triple is indeed a good one. However, 9, 12, 15 is equally valid but not included as an answer. To avoid this, I would suggest changing the problem so that it requires finding the answer with the minimum Z^2 to avoid ambiguity.

on 2 Jan 2014