Problem 833. Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Solution Stats
Problem Comments
-
4 Comments
Fun problem!
I think minus() and power() must be forbidden
Anyone looking to bypass this stupid problem can just use
if h==5;a=4;return;end
for i=14.8324:0.000001:15.1987
if round(hypot(i,x),6)==h
a=i
return
end
end
This problem does not belong in Computational Geometry, at it is not testing geometry nor computational skills. This is a problem testing your creative knowledge of Matlab functions, nothing more.
Solution Comments
Show commentsProblem Recent Solvers173
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15026 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
1920 Solvers
-
Implement simple rotation cypher
1041 Solvers
-
4281 Solvers
-
Find my daddy long leg (No 's')
1872 Solvers
More from this Author293
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!