Review: Mathematica in Action
Posted: June 14th, 2011 | Author: Sol | Filed under: Book Review | 8 Comments »
Stan Wagon and I have exchanged a number of emails about Mathematica. A few messages into the dialogue I realized that I needed to review his latest book: Mathematica® in Action: Problem Solving Through Visualization and Computation. Before I even immersed myself in the book I knew I would like it because I enjoy Stan’s playful relationship with Mathematica and I enjoy receiving the simple and elegant little programs that Stan would send me.
Here are the questions I ask myself when looking for Mathematica books to recommend.
- Is the book current? Many Mathematica books are years old, which means these books have old Mathematica code, which may or may not run on recent releases. Of course, much of the code that focuses on the core underpinnings of Mathematica runs fine on newer releases. But, I’ve run into one too many pieces of sample code from a website that just doesn’t run on my copy of Mathematica 8.
- Is the material accessible to beginners?
- Does the book teach via interesting examples? I personally don’t like books that are heavy in discussions of a language’s grammar and syntax and light in engagement. Mathematica is certainly not a spectator sport. The framework demands full engagement to master its subtle and not-so-subtle concepts. What better way to engage than through interesting programming projects and case studies?
- Do the case studies foster investigation? After I’ve copied and pasted the sample code in the book, can I modify and extend the code to discover something?
- Is the writing style engaging? Mathematica can be very “heady” stuff. It takes a gifted writer to keep the reader interested.
In other words, does a particular book do as good a job as I hope to do via this blog to encourage the reader that playing with Mathematica can be fun?
As you might suspect, Stan Wagon has done an outstanding job meeting all five of my criteria.
- “Mathematica in Action” is in its third edition. I wrote to Stan asking him what version of Mathematica he used to develop the code. He replied that he has made everything compatible with Mathematica 7, that there were no big architectural changes in Mathematica 8 and that no readers have reported any incompatibilities.
- Beginners will benefit from the book as will more experienced Mathematica programmers as the explorations build from simple introductory concepts and increase in difficulty as each chapter progresses. Additionally, the book begins with a brief introduction to Mathematica. And, all of the code in the book is on a CD.
- The best feature of the book is that it teaches via interesting examples. I’m biased in that I enjoy pure math (math for its own sake) much more than calculus, differential equations and such. For me the joy of math is in finding patterns and relationships and in exploring ideas in a right-brain way. Let me play with an idea and let Mathematica do the tedious computation and I’m happy.
“Mathematica in Action” has twenty “primary” chapters, each with its own investigation, plus a twenty-first chapter, Miscellany. Chapter 17, Coloring Planar Maps, is but one example of an interesting and accessible investigation. I would not have imagined that an amateur mathematician such as myself would have an opportunity to investigate the four color map theorem. Wagon has made the subject accessible and interesting with the help of Mathematica’s built in Combinatorica package plus a second package, MapColoring, that is provided electronically. The chapter assumes an understanding of elementary concepts of graph theory. Like the other chapters, Chapter 17 starts from a basic idea and builds in complexity and sophistication. Here’s the description of this chapter’s exploration:
The four-color theorem states that any planar map can be colored in four colors, where countries that share a one-dimensional border must get different colors. A “country” is the interior of a simple, closed curve. Of course, on the computer we will restrict ourselves to countries with polygonal boundaries. Inspired by the suggestion of Joan Hutchinson that Mathematica could be used to illustrate many phenomena related to the four-color theorem, I set out to write a comprehensive package to deal with planar maps, planar graphs, and coloring algorithms. As usual, careful algorithmic thinking leads to some new ideas. The main new point here is that Kempe’s false proof of 1879 can be modified by the addition of one word to yield a reasonably good algorithm for four-coloring actual maps. Full details of the implementation of Kempe’s method and its use in getting a four-coloring algorithm will be given. This chapter assume that the reader is familiar with the elementary notions of graph theory.
Diving into Chapter 17 provides the opportunity to create and edit planar graphs, to apply the concepts learned to maps of real country data (built into Mathematica), to apply Euler’s formula (v-e+f=2) to the investigation, to study Kempe’s failed proof of the theorem, to modify Kempe’s approach, and much more.
I could go on for a long time about how interesting the investigations are in each of the chapters. You might want to look at a detailed table of contents at the publisher’s site and get your own sense of the subjects. The preface and sample pages are available at the publisher’s site as well.
- The case studies most definitely inspire investigation. Since each chapter combines simple ideas to build up to more sophisticated constructions, an excellent strategy for investigation is to read the description of the next idea and to play with that idea before reading further. Of course, one can also take one of the author’s ideas and explore it in a new direction. And, in the example of the four-color theorem, the curious investigator can read about the theorem in outside sources and bring those outside ideas to an exploration. Because the material in the book is about classical math problems, there will be plenty of outside material to spark continued investigation.
Chapter 10, Penrose Tilings, is an excellent example of how one can explore concepts beyond the scope of what is in the book. A Google search of “penrose tilings” (without the quotes) yields 53,200 web results and 39,500 images. Adding the word “activity” to the search produces plenty of web-sites with their own investigations. A few of the page titles that caught my interest include “Miles of Tiles,” Playing Penrose’s Tile Game,” and “Multiple transformations of shapes.” While there is a list of references in the book, the references are, unfortunately, not cross-referenced with the chapters and the references are typically to journal articles so readers will need access to an academic library to read them.
- The writing is remarkably good. The author clearly loves to play with Mathematica and mathematical ideas and that passion comes across in his writing. Stan Wagon starts each chapter with a very clear idea of where he’s going and he is careful to explain new ideas as we encounter them. The book contains a good number of color illustrations and is rich in Mathematica output.
I give this book two thumbs up. Books that combine interesting explorations with clear and engaging writing are hard to come by. I’m delighted to have this book in my collection.
I recently purchased the book and agree that is is one of the top three currently available.
I did have one big disappointment – it is not available in an electronic format. I wish that purchasing the hard copy would include a ebook format as well. It would be a lot easier to travel with an ebook or to be able to print a specific chapter as I travel a lot for business.
@Jon Which do you consider to be the other two top books?
The other two:
Mathematica Cookbook and Mathematica Navigator.
I don’t use Navigator very much anymore though. It is on the verge of being out of date having been written for MMCA 6.
Jon – I’m familiar with Mathematica Cookbook. I’ll have to look at Mathematica Navigator. Thanks.
Mathematica Navigator is terrific and version 6 is generally very compatible with version 8. I found the Cookbook too restrictive. That is, for the non-expert user, Navigator is more valuable in learning and utilizing Mathematica. I have an older version (First edition, 1991) of Mathematica in Action and I’m sure one can “translate” the programs. My favorite book, after Navigator, is Richard Gass’ “Mathematica for Scientists and Engineers: Using Mathematica to do Science”. This was written with version 3 and translation is sometimes challenging; however the topics and the development of programs are wonderful and very educational. For example, chapter 2 is on solving equations and he explores the three-body problem and periodic orbits; this is a terrific exposition on this classic physics and mathematics problem. Out of print but available used on Amazon — very highly recommended.
Though Mathematica Navigator 3rd is a little out of date , the content of the is great and helpful! For beginner, it is the source of mathematica’s knowledge!A good review of this book can be found in http://www.mathematica-journal.com/2010/11/review-of-mathematica-navigator-3rd-edition-by-heikki-ruskeepaa/ by ROBERT M. LURIE.
Is it possible for Sol to write a detail review of this great book—-Mathematica Navigator, 3rd Edition?
Funny, Mathematica Navigator 3rd Edition is what I was assigned for the fall.
I have “The Mathematica Book” Third Edition (1996) and Fifth Edition (2003) – are either of them still useful? Or is the book probably too advanced for a beginner like me?
Could I put in a plug for “Exploring Mathematics with Mathematica” by Theodore W Gray and Jerry Glynn (Addison-Wesley 1991)? This hugely entertaining book is written in the form of an extended dialogue between Jerry (the Sagredo of Galileo’s Dialogues, and the intelligent learner) and Theo (the Salviati, the Mathematica guru). I’m sure it was the first book I ever bought with a CD in a plastic pocket inside the rear hard cover. Chapter 18, “The Square Root of Beethoven” was on its own enough to convince me of the power of Mathematica.