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 Solvers4356
Suggested Problems
-
Find the peak 3n+1 sequence value
2408 Solvers
-
Program an exclusive OR operation with logical operators
705 Solvers
-
Make a random, non-repeating vector.
8478 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
620 Solvers
-
convert matrix to single column
395 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!