Problem 2022. Find a Pythagorean triple
Solution Stats
Problem Comments
-
8 Comments
See Problem 1550 Can I make a right triangle ?
Thanks Tanya, have enjoyed these.
if (a==2|a==3)
flag=true;
end
The cases are very limited to make such a code valid
Thanks, enjoyed these.
I really liked this problem!
niceee
brainstormed
any insight into handling the case where one of the side lengths is irrational and rounding error in the approximation causes a false negative to be returned?
for example - Test 7
Solution Comments
Show commentsProblem Recent Solvers4302
Suggested Problems
-
Find the peak 3n+1 sequence value
2313 Solvers
-
Find the sum of the elements in the "second" diagonal
1129 Solvers
-
Find the maximum number of decimal places in a set of numbers
2529 Solvers
-
Find x rows where the sum of the numbers is the maximum
406 Solvers
-
442 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!