WOLFRAM

Products

How the Wolfram Language Measures Up

Back in 2012, Jon McLoone wrote a program that analyzed the coding examples of over 500 programming languages that were compiled on the wiki site Rosetta Code. He compared the programming language of Mathematica (now officially named the Wolfram Language) to 14 of the most popular and relevant languages, and found that most programs can be written in the Wolfram Language with 1/2 to 1/10 as much code---even as tasks become larger and more complex. We were curious to see how the Wolfram Language continues to stack up, since a lot has happened in the last two years. So we updated and re-ran Jon's code, and, much to our excitement (though we really weren't all that surprised), the Wolfram Language remains largely superior by all accounts! Keep in mind that the programming tasks at Rosetta Code are the typical kinds of exercises that you can write in conventional programming languages: editing text, implementing quicksort, or solving the Towers of Hanoi. You wouldn’t even think of dashing off a program in C to do handwriting recognition, yet that’s a one-liner in the Wolfram Language. And since the Wolfram Language’s ultra-high-level constructs are designed to match the way people think about solving problems, writing programs in it is usually easier than in other languages. In spite of the Rosetta Code tasks being relatively low-level applications, the Wolfram Language still wins handily on code length compared to every other language. Here's the same graph as in Jon's 2012 post comparing the Wolfram Language to C. Each point gives the character counts of the same task programmed in the Wolfram Language and C. Notice the Wolfram Language still remains shorter for almost every task, staying mostly underneath the dashed one-to-one line: The same holds true for Python:
Design & Visualization

SlideOScope and Wolfram Language Magically Transform Your Photos and Art

Donald Barnhart is a self-proclaimed mad optical scientist and independent business owner. He’s been developing optical design and analysis software in Mathematica since 1991, he’s the creator of the popular Optica software package, and he’s the developer of the first successful high-resolution holographic instrument that measures three-dimensional velocity fields in fluids. Now Barnhart has another invention to add to his list of accomplishments: a totally new kind of photo album called the SlideOScope.
Products

Rich Interactivity of New ebook, Incredible Numbers, Created with the Wolfram Language

Touch Press recently announced its newest title, Incredible Numbers, by Ian Stewart. The rich interactive explorations in the ebook were prototyped in the Wolfram Language by Phil Ramsden, who is a Teaching Fellow at Imperial College London and a Mathematica trainer. We asked him to relate his experience here. Ian Stewart's mathematical imagination is boundless. There are few areas of the subject that haven't been illuminated, for a general readership, by his gift for clear and vivid exposition. So when Ian, Touch Press, and Profile Books decided to create something interactive, they needed a development and prototyping environment in which you can do pretty much anything; a mere specialist application wasn’t going to cut it. That's where the Wolfram Language came in and, happily for me, where I did too. The Wolfram Language provides an environment in which you can do pretty much anything, and do it quickly. The reason that the Wolfram Language is such a “game-changer” is that where interactive content is concerned, it takes us into a world where an idea (such as one of Ian’s) can become a working prototype in no time.
Education & Academic

Adventures into the Mathematical Forest of Fractal Trees

Without doubt, the golden ratio is nowadays considered the most mysterious, magical, and fascinating number that exists: . As we will see in this post, this number still has many interesting properties that can be investigated, some even dating back to the works of the ancient Greeks Pythagoras and Euclid, the Italian mathematician Leonardo of Pisa, and the Renaissance astronomer Johannes Kepler. Though it might sound strange, I will unveil new geometric objects associated with the golden ratio, which are the objects that illuminated my way when I attempted to map an unknown region of the Mathematical Forest. The following findings aren't a mere accident; I've been working hard to grasp a glimpse of new knowledge since high school. After seeing Hans Walser's drawings of golden fractal trees in 2007, I was convinced that there was still space for exploration and new discoveries. Though I had to wait quite a while, I finally found the right tools: Mathematica, combined with Theo Gray's "Tree Bender" Demonstration. After gathering some intuition and a rudimentary knowledge of the Wolfram Language, I encountered my first insights. For example, here is one of the first self-contacting golden trees that I discovered when I created my own version of "Tree Bender" in order to explore ternary trees (trees with three branches per node):
Products

The Rubik’s Cube: 40 Years of Geometrical Abandon

In 1974, a Hungarian professor of architecture by the name of Ernő Rubik came up with a seemingly simple idea: to create a small, 2x2x2 rotating cube made up of sub-cubes to use as a teaching tool for his students. Little did he know that this device, which was originally intended simply to help visualize moving parts in three dimensions (and didn't even work that well), would develop into a puzzle that continues, to this day, to plague and fascinate minds of all ages. Minds, for example, like mine. Most younger siblings get hand-me-down clothes, books, or toys---but when I was thirteen years old, my big brother placed a dented and worn colorful plastic cube into my hands. The stickers were peeling and falling off, it was rickety and hard to turn, but I didn't care, it was perfect.
Education & Academic

How Intel ISEF Students Use Mathematica

Working for Wolfram Sponsorships is a little bit like playing Santa Claus to thousands of talented students all over the world. It's a privilege to get a glimpse of their projects and achievements, and I enjoy hearing from them about how they've used their Wolfram awards. One of my favorite sponsorships is the Intel International Science and Engineering Fair (ISEF), currently underway in Los Angeles. For the ninth consecutive year, Wolfram Research has been a proud sponsor of this event. A program of Society for Science & the Public, the Intel ISEF is the world's largest pre-college science competition, and includes more than 1,700 high school students from more than 70 countries, regions, and territories. Each year, the finalists showcase their independent research as they compete for more than $5 million in awards. The ISEF encourages millions of students worldwide to explore their passion for innovation and develop solutions for global challenges.
Design & Visualization

2048, Wolfram Style

If you've been anywhere on the internet these past few weeks, there's little doubt that you've come across the game 2048 (made by Gabriele Cirulli). Based on the similar games 1024! (by Veewo Studio) and THREES (by Asher Vollmer), this game has a simple mechanic that can leave you puzzled for days---slide powers of two around a grid, and combine them to make higher powers of two. The goal is to get to 2048. It's hard to explain just how fun and challenging this game is, so I recommend playing it for yourself. So, as a tribute to this little game (and in honor of all games mathematical!), I thought it would be fun to demonstrate the power of the Wolfram Language by using it to make our own version of 2048. Let's go! The basic structure for the game board will be a 4X4 matrix, initialized with an empty element in each position:
Announcements & Events

New Books Using Wolfram Technologies

Mathematica and Wolfram|Alpha are powerful technologies for deepening students' and researchers' understanding of complex topics in math and science. These recently published books incorporate engaging Mathematica and Wolfram|Alpha examples and code into texts written for undergraduates, graduate students, and researchers. Composite Materials in Piping Applications: Design, Analysis and Optimization of Subsea and Onshore Pipelines Dimitrios G. Pavlou explains the design, analysis, and performance of composite materials in oil, gas, water, and waste-water piping. The text is accompanied by a CD-ROM containing algorithms for pipe design and analysis using Mathematica. Topology of Digital Images: Visual Pattern Discovery in Proximity Spaces James F. Peters carries forward recent work on visual patterns and structures in digital images and introduces a near set-based topology in this book. To provide a better understanding of digital images, Mathematica scripts are used to illustrate the fabric and essential features of images. Green's Functions in the Theory of Ordinary Differential Equations In this text written for graduate students and researchers interested in the theoretical underpinnings of boundary value problem solutions, Alberto Cabada provides a complete and exhaustive study of Green's functions, including two appendices with Mathematica content.
Announcements & Events

Q&A with SpinDynamica Creator Malcolm Levitt

Professor Malcolm Levitt is Head of Magnetic Resonance at the University of Southampton and a leader in the field of magnetic resonance research. In the early 2000s, he began programming SpinDynamica---a set of Mathematica packages that run spin dynamical calculations---to explore magnetic resonance concepts and develop experiments. SpinDynamica is an open-source package that Professor Levitt continues to work on as a hobby in his spare time, but the SpinDynamica community also contributes add-ons to bring additional functionality to researchers. Professor Levitt graciously agreed to answer a few of our questions about his work, Mathematica, and SpinDynamica. He's hopeful that as word spreads, others will submit add-ons that enhance the core functionality of SpinDynamica.