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 Solvers4357
Suggested Problems
-
Maximum running product for a string of numbers
2109 Solvers
-
Project Euler: Problem 4, Palindromic numbers
975 Solvers
-
Numbers with prime factors 2, 3 and 5.
464 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1736 Solvers
-
Number of Even Elements in Fibonacci Sequence
1252 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!