Skip to main content


Mathematica is best known as a computer algebra system and its corresponding capabilities in symbolic computation. In recent years, however, Wolfram has implemented huge improvements in terms of raw speed in numerical computations. In my daily work, I found that Mathematica now often outperforms dedicated numerical systems such as Matlab.

In this context, a particularly convenient feature of Mathematica is how it's handling numerical objects. The following integral, for example, cannot be expressed in closed analytical form.

Yet, it is still easily possible to use it in fitting experimental data:

Numerical fit

To compute the integral itself takes about 150 ms on my humble E6600. The fit to 32 datapoints takes about 60 s, and the plot 15 s (as indicated in the notebook). To obtain the result (the non-local electrical Hanle effect) experimentally, well, that took our student a year. Which is why we emptied a bottle Moët & Chandon after the measurement. :)

Contents © 2018 Cobra - Powered by Nikola