Problem 61071. Generalizing square area to triangle area
Cody Problem 61070 asked for the height, h, of a right triangle that had the same area, A, of a square with side length, c, and the hypothenuse length was correlated to the square side by x = 2.
Now, find the height, h, of the right triangle that has the same area, A, of a square with side length, c, and the hypothenuse length is xc, for an arbitrary number x > 2. Here, the height stands for the smallest cathetus.
Solution Stats
Problem Comments
-
3 Comments
Christian Schröder
on 12 Nov 2025 at 20:10
@Luisa, thanks for follow-up problem. Your 2nd test case has a typo: you're declaring n but calling the function with x.
Luisa
on 13 Nov 2025 at 10:16
Sorry. I saw that before to publish and I corrected it, but I forgot to save before to publish, and I leave the problem for the first solver. So sorry.
Thank you.
Christian Schröder
on 13 Nov 2025 at 14:01
Thanks for the quick fix, Luisa.
@Cody team, although the test suite changed, some (not all!) previously submitted solutions aren't tagged as outdated and don't offer the option to rescore them. Could you look into this?
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!