Problem 2022. Find a Pythagorean triple
Solution Stats
Problem Comments
-
8 Comments
Show
5 older comments
Jean-Marie Sainthillier
on 13 Dec 2013
See Problem 1550 Can I make a right triangle ?
Justin Illingworth
on 22 Oct 2019
Thanks Tanya, have enjoyed these.
George Iskander
on 18 Feb 2020
if (a==2|a==3)
flag=true;
end
The cases are very limited to make such a code valid
Lkhagvasuren Byambadorj
on 27 Oct 2020
Thanks, enjoyed these.
Parry
on 11 Dec 2022
I really liked this problem!
Minh Lan
on 20 Feb 2023
niceee
Shahriar Kabir
on 19 Mar 2023
brainstormed
Josh
on 17 Jul 2023
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 Solvers4044
Suggested Problems
-
Remove element(s) from cell array
1171 Solvers
-
Back to basics - mean of corner elements of a matrix
380 Solvers
-
293 Solvers
-
958 Solvers
-
Calculate the average value of the elements in the array
844 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!