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
Solution Comments
Show comments
Loading...
Problem Recent Solvers18
Suggested Problems
-
Find common elements in matrix rows
2721 Solvers
-
Number of 1s in a binary string
11575 Solvers
-
Compute a dot product of two vectors x and y
1057 Solvers
-
Sum the numbers on the main diagonal
620 Solvers
-
Natural numbers in string form
1969 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
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)