Problem 60166. Recursive triangle area
Given triangle 1 with sides of length a, b, and c. Triangle 2 is constructed within triangle 1 by bisecting each side. Triangle 3 is constructed within triangle 2 by bisecting each of triangle 2's sides. And so on.
Find the area of triangle n.
Solution Stats
Problem Comments
-
1 Comment
Tim
on 4 May 2024
The test
assert(your_fcn_name(a,b,c,n) - y_correct < y_correct/1000)
should be
assert(abs(your_fcn_name(a,b,c,n) - y_correct) < y_correct/1000)
Solution Comments
Show commentsProblem Recent Solvers11
Suggested Problems
-
Back to basics 22 - Rotate a matrix
903 Solvers
-
1422 Solvers
-
709 Solvers
-
Is this triangle right-angled?
5809 Solvers
-
Create the following sequence : 0 1 1 4 9 25 64 169 ...
180 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!