Given the area, A, of a square with side length, c, if a right angle triangle has the same area A and the hypothenuse length 2c (two times the square side), then find the height, h, of the triangle.
Forbidden functions / expressions
- regexp
- assignin
- str2num
- echo
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers17
Suggested Problems
-
17 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I copied the problem into Google and its AI Overview feature gave the correct answer. I wonder how many other Cody problems it could solve....
Thank you, Tim, for the information. Next time, I will take care of how AI responds.
However, the real pleasure lies in finding the solution on our own.
I didn't mean to imply at all that you should have checked that. It just occurred to me to give it a try, and I was somewhat surprised at the result. I thought others here might find it interesting.
Luisa, I can't speak for Tim, William, and Christian, of course, but I'm quite certain that they agree with your statement about the real pleasure in problem solving, as I do.
@Luisa @ChrisR I wholeheartedly agree. If I didn't enjoy solving these problems, I wouldn't be on Cody. So thank you very much, Luisa, for contributing this nice problem, and I hope to see more from you!