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 Solvers4052
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2772 Solvers
-
Project Euler: Problem 4, Palindromic numbers
913 Solvers
-
Back to basics 9 - Indexed References
431 Solvers
-
Compute a dot product of two vectors x and y
941 Solvers
-
546 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!