What is this program would look like?

The Pythagorean theorem states that a2 + b2 = c2 • Write a MATLAB program in a script file that finds all the combinations of triples a, b, and c that are positive integers all smaller or equal to 50 that satisfy the Pythagorean theorem. Display the results in a three-column table in which every row corresponds to one triple. The first three rows of the table are:
3 4 5
5 12 13
6 8 10

1 Kommentar

John D'Errico
John D'Errico am 1 Apr. 2015
Bearbeitet: John D'Errico am 1 Apr. 2015
Which of the several answers to your homework problem were not acceptable the FIRST time you asked this identical question? Is it just that they did not give you sufficiently explicit code to do it for you?
Don't just keep asking the same question over and over again.
And DO your own homework.

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Gefragt:

am 1 Apr. 2015

Bearbeitet:

am 1 Apr. 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by