Problem 45408. Yoonir - 03
Solution Stats
Problem Comments
-
6 Comments
Hi Asif,
I'm puzzled. Now 2 people have submitted solutions that agree with the test suite, but the test suite seems wrong to me! Looking at all 3 'yoonir' problems for a radius of 10 units:
Program Points test_suite my_calc
yoonir_02 5 112.27 112.26
yoonir_04 6 173.20 173.21
yoonir_06 7 108.34 210.17
How would it be possible that in going from a 6 pointed star to a 7 pointed star, the area drops from 173.2 to 108.3?
hello William,
in the figure, the available area inside the polygon of a 7-pointed star has actually decreased compared to 6-pointed star .isn't it?
https://i.pinimg.com/474x/27/ce/d6/27ced6447ff40b38ae3d5784b30936a9.jpg
Gosh, that seems to be right! I thought my solution was good for all N, but I can see from that figure that it's not. Thanks for the tip.
Asif,
I have discovered something! While there is just one way to draw a five-pointed star or a six-pointed star, there are actually two ways to draw a seven-pointed star. One of them has an area much larger than the other.
yes i saw that later on utube..didn't know that before
Solution Comments
-
1 Comment
It was actually unintentional. I originally intended to submit only the 1st problem of yoonir(which is a 5 pointed star) but then it suddenly came to mind what about a 6/7 pointed star. Tried to calculate one by one.
a generalized problem of an n-pointed star would have been gd.
Problem Recent Solvers16
Suggested Problems
-
1219 Solvers
-
148 Solvers
-
Remove the two elements next to NaN value
610 Solvers
-
Find Index of maximum Value and maximum Value of a vector
157 Solvers
-
Basics: 'Find the eigenvalues of given matrix
385 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!