Problem 45379. 3rd side of a Triangle
Solution Stats
Problem Comments
-
3 Comments
Asif,
The results in the test suite seem to be based on the idea that the minimum and maximum areas are found by setting the third side to a3 = abs(a1-a2)+1 and a3=a1+a2-1, which is not correct. The correct maximum is somewhere in the middle. For example, in problem 2, the correct results are mn = 24.9987 and mx = 1250.0000.
yes.. i see that now.. my assumption was wrong.
Sorry for the misconception.
yet again we learn from our mistakes
Humm, I am certain that the minimum area of any triangle is zero, which corresponds to the degenerate case when one side is equal to the sum of the other two.
Solution Comments
-
2 Comments
The maximum areas you report in the test cases are mostly wrong.
yes yes i see
-
1 Comment
thanks for pointing that out
Problem Recent Solvers15
Suggested Problems
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
369 Solvers
-
546 Solvers
-
325 Solvers
-
220 Solvers
-
There are 10 types of people in the world
646 Solvers
More from this Author149
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!