Problem 43560. Calculate the hypotenuse of a right triangle without using ^ and sqrt ()
Find out the hypotenuse of right triangle.
Say a = 4, b = 3 then c = 5
Please don't use ^ and sqrt() function.
Solution Stats
Problem Comments
-
1 Comment
goc3
on 30 Nov 2016
A random test case was added to prevent hard-coded workarounds.
Solution Comments
Show commentsProblem Recent Solvers97
Suggested Problems
-
4539 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
863 Solvers
-
convert matrix to single column
422 Solvers
-
4935 Solvers
-
Replace every 3rd element in a vector with 4
258 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!