Problem 1969. Self-Description
This is a simplified version of the xkcd comic by the same name.
Simply return the angle (in degrees) of the 'black' sector of the pie chart that would make the graph description accurate.
Details:
Assume that the pie chart circle covers 36% of the total image area, and that the text, textbox lines, image frame, and outer circumference of the pie (anything painted in black except the pie chart 'black' sector) add up to 6.4% of the total image area.
Return the angle in degrees rounded to 4 decimals.
("detail oriented" players may also assume that the portion of the textbox line which is white (overlapping the pie chart 'black' sector) has already been discounted twice from the 6.4% value above)
Solution Stats
Problem Comments
-
4 Comments
Hello Alfonso. Do you want a hacking of the pcode ? Is it possible ? Or do you want a more common measurement from the image with your parameters?
I was going for the simple measurement (and the .p function was just to avoid publishing the actual solution) but please feel free to explore other approaches as well. While common hacks to pass this problem would work, I believe it might not be possible to hack the piechartsolve.p function to give away the solution (but I will be very interested if that proves to be wrong!)
I tried something in my solution.
Tip: It is useless to count pixels. And it is not a hacking challenge. There is a way to know.
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Find the numeric mean of the prime numbers in a matrix.
8913 Solvers
-
2027 Solvers
-
Change the sign of even index entries of the reversed vector
553 Solvers
-
1033 Solvers
-
572 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!