Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return false.
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers6598
Suggested Problems
-
All your base are belong to us
576 Solvers
-
Make a run-length companion vector
659 Solvers
-
Set the array elements whose value is 13 to 0
1443 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
399 Solvers
-
674 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!
among a,b,c., specify the hypotenuse.
that's the tricky part here ;) Check all combinations - too bad 'combvec' doesnt work here
Passes for True, but Failing when I get to false test?? Not sure at the moment what I could be missing.
I'd like to suggest an additional test case such as
a = sqrt(10); b = 3; c = 1;
Here the result is "true", but some of the existing solutions won't work because of rounding errors.
interesting!