Math Bytes by Chartier Tim
Author:Chartier, Tim
Language: eng
Format: epub
Publisher: Princeton University Press
Published: 2014-04-13T04:00:00+00:00
Not a chocoholic? Skittles, Starbursts, Cheerios, or, for the calorie conscious, Sticky Notes could replace chocolate chips and be used to approximate π. In fact, you could even estimate this irrational number or compute an integral as you tile your bathroom floor or decorate a sheet cake.
Figure 8.9. Our palette of M&Ms for mathematical art.
Figure 8.10. The regions in (a) and (c) are approximated by the M&M mosaics in (b) and (d).
Candy Mosaics
We just used M&Ms to estimate the value of an integral. Now, we will create mosaics with candy. While we have many choices of candy to use as tiles, we’ll pick M&Ms since they melt in your mouth and not in your hand, giving us ample time to create our mosaic. So our palette of tiles is the group of M&Ms available in a standard bag of the treats as seen in Figure 8.9.
The image we want our tiling to approximate will be called the target image. Suppose we want to create an M&M mosaic to approximate the image in Figure 8.10 (a). Since each of the squares is the same color as an M&M, it is fairly clear that the mosaic in Figure 8.10 (b) is a good choice. Suppose instead we want to again use four M&Ms to create a mosaic but now the target image is Figure 8.10 (c). Visually, we can decide which candy pieces to use. How do we get a computer to choose on its own?
We again capture the three color intensities of a pixel as a coordinate triplet (r, g, b), where r is the amount of red, g is the amount of green and b is the amount of blue. The square in the upper left of Figure 8.10 (c) has the color (208, 231, 32). We use the distance formula to find the M&M with the closest color. Using Table 8.1 as the colors of the M&Ms, the distance between the color of the upper left square in Figure 8.10 (c) and the color of a blue M&M is
TABLE 8.1.
The red, blue, green values of M&M candies used in our candy mosaics.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6214)
Weapons of Math Destruction by Cathy O'Neil(5802)
Factfulness: Ten Reasons We're Wrong About the World – and Why Things Are Better Than You Think by Hans Rosling(4473)
Descartes' Error by Antonio Damasio(3152)
A Mind For Numbers: How to Excel at Math and Science (Even If You Flunked Algebra) by Barbara Oakley(3092)
Factfulness_Ten Reasons We're Wrong About the World_and Why Things Are Better Than You Think by Hans Rosling(3036)
TCP IP by Todd Lammle(2995)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2888)
Fooled by Randomness: The Hidden Role of Chance in Life and in the Markets by Nassim Nicholas Taleb(2845)
The Tyranny of Metrics by Jerry Z. Muller(2827)
The Book of Numbers by Peter Bentley(2757)
The Great Unknown by Marcus du Sautoy(2522)
Once Upon an Algorithm by Martin Erwig(2467)
Easy Algebra Step-by-Step by Sandra Luna McCune(2447)
Lady Luck by Kristen Ashley(2394)
Practical Guide To Principal Component Methods in R (Multivariate Analysis Book 2) by Alboukadel Kassambara(2368)
Police Exams Prep 2018-2019 by Kaplan Test Prep(2341)
All Things Reconsidered by Bill Thompson III(2249)
Linear Time-Invariant Systems, Behaviors and Modules by Ulrich Oberst & Martin Scheicher & Ingrid Scheicher(2219)
