WOLFRAM

Education & Academic

Calculating the Energy between Two Cubes

In my last blog post, we discussed 3D charge configurations that have sharp edges. Reader Rich Heart commented on it and asked whether Mathematica can calculate the force between two charged cubes, as done by Bengt Fornberg and Nick Hale and in the appendix of Lloyd N. Trefethen's book chapter. The answer to the question from the post is: Yes, we can; I mean, yes, Mathematica can. Actually, it is quite straightforward to treat a more general problem than two just-touching cubes of equal size: We can deal with two cubes of different edge lengths L1 L2 We can calculate the force for any separation X, where X is the distance between the two cube centers (including the case of penetrating cubes; think plasma) We will use a method that can be generalized to higher-dimensional cubes without having to do more nested integrals Instead of calculating the force between the two cubes, we will calculate the total electrostatic energy of the system of the two cubes. The force is then simply the negative gradient of the total energy with respect to X. The electrostatic energy (in appropriate units) is given by: (In the following calculations, we will skip the constant [with respect to X] prefactors Q1 L1-3 Q2 L2-3 or Q1 Q2 if not needed.) Approaching this integral head-on doing one integral after another is possible, but a very tedious and time-consuming operation. Instead, to avoid having to carry out a nested six-dimensional integral, we remember the Laplace transform of 1 / √s.
Announcements & Events

Presentations from the Wolfram Mathematica Virtual Conference 2012 Now Available

The recent Wolfram Mathematica Virtual Conference was a tremendous success! The free event included two tracks of talks covering applications of Mathematica in industry and research and in education, Q&A with experts, and access to virtual networking. From building graphics and dynamic visualizations to learning creative ways for using the Computable Document Format (CDF) in the classroom, attendees of all experience levels gained new insights to help them get the most out of the Mathematica platform.
Best of Blog

Automating xkcd Diagrams: Transforming Serious to Funny

On early Monday morning I noticed an interesting question posted on Mathematica Stack Exchange titled quite innocently "xkcd-style graphs." Due to the popularity of Randall Munroe's xkcd web comic, I expected a bit more than average of about ten or so up-votes, a few bookmarks. Little did I know. Spontaneously emerging viral events are hard to predict, so if you are lucky to catch one, it is fascinating to watch its propagation across the web and the growth of its ranks. In a matter of two days, this post received more than 100,000 views, 200 up-votes, and 150 bookmarks; produced responses and similar posts across other Stack Exchange communities; triggered a small tornado on Twitter; and was discussed on Hacker News and reddit. For convenience, I repeat Amatya's original post and example xkcd image here: "I received an email to which I wanted to respond with a xkcd-style graph, but I couldn't manage it. Everything I drew looked perfect, and I don't have enough command over Plot Legends to have these pieces of text floating around. Any tips on how one can create xkcd-style graphs? Where things look hand-drawn and imprecise. I guess drawing weird curves must be especially hard in Mathematica."
Education & Academic

3D Charges and Configurations with Sharp Edges

In my last blog post, we looked at various examples of electrostatic potentials and magnetostatic fields. We ended with a rectangular current loop. Electrostatic and magnetostatic potentials for squares, cubes, and cuboids typically contain only elementary functions, but the expressions themselves are often quite large compared with simple systems with radial symmetry. In the following, we will discuss some 3D charge configurations that have sharp edges. Let's start with a charged 2D rectangle in 3D space. Again, the potential is an elementary function that contains a few logarithms.
Announcements & Events

Mathematica Experts Live: One-Liner Competition—And the Winners Are…

Mathematica users around the world answered our call to prove their programming prowess in our recent Mathematica Experts Live: One-Liner Competition. And once again, we were blown away by what our users did with just 140 characters or less of Mathematica code. Videos from the webcast where we revealed the winner and runners-up are now available in our Screencast & Video Gallery and on YouTube. Check them out to see the creative applications the honorees came up with: from transforming a sphere into a cow to random sound generators to a world capitals quiz to the highly impressive grand prize winner. You're sure to learn some new Mathematica tricks and techniques from each entry.
Announcements & Events

Free Wolfram Mathematica Virtual Conference 2012

Get an edge in everything from computer graphics to deploying interactive reports to using Wolfram|Alpha in the classroom. Whether you're new to Mathematica or an expert, the free Wolfram Mathematica Virtual Conference 2012 will help you get the most out of the platform. Two tracks of conference talks cover applications of Mathematica in industry and research and in education. Each talk includes a live Q&A session.
Announcements & Events

Computer-Based Math Education Summit 2012

In November 2011 we held the first Computer-Based Math Education Summit in London. Over two days we brought an unprecedented cross-section of people with a stake in STEM education to address the question "In an era of ubiquitous computing, how should we rebuild math education from the ground up, to keep pace with and drive progress in the real world?" Last year's summit was a first glimpse at some of the work from the computer-based math community worldwide. The Computer-Based Math Education Summit 2012, again being held in London, will be tackling more of these issues in a mainstream way. If you want to have a stake in math education in 10 years' time, this summit is unmissable.
Computation & Analysis

Analyzing Pedometer Data with Mathematica

In Stephen Wolfram's personal analytics blog post, he showed a number of interesting plots of the steps he's recorded on his pedometer over the past two years. Each plot highlighted a different feature of his activity. For example, this daily step distribution makes it clear that Stephen is typically most physically active around noon: In this blog post I'll show you how to analyze your own pedometer data and make cool plots like Stephen's. If you don't have any data, you can use the attached sample data that corresponds to my own physical activity. First we need to import the data and format it appropriately. The data is formatted as pairs of time stamps and step counts in five-minute intervals.