23
$\begingroup$

My club is considering buying a Raspberry Pi computer for tinkering. Can Mathematica be installed on and ran from it?

$\endgroup$
1
  • 4
    $\begingroup$ Hmm, perhaps the accepted answer should be updated? $\endgroup$
    – Ajasja
    Dec 2, 2013 at 11:07

5 Answers 5

16
$\begingroup$

Mathematica is available for non-commercial use on the RPi now.

No. Mathematica is not available for Linux on the ARM architecture; only for x86/x86-64.

Even if it ran, performance wouldn't be very good, considering the Pi's weaker hardware. From the FAQ you linked to:

Overall real world performance is something like a 300 MHz Pentium 2, only with much, much swankier graphics.

while Wolfram recommends

Processor: Intel Pentium III 650 MHz or equivalent
Disk Space: 4 GB
System Memory (RAM): 512 MB required; 1 GB+ recommended

$\endgroup$
9
  • 3
    $\begingroup$ If, hypothetically, you could compile MMA for ARM then you could use a version from the Pentium 2 era which should run better. Moot point though. $\endgroup$
    – s0rce
    Oct 9, 2012 at 15:43
  • $\begingroup$ This answer needs updating or deletion. Mathematica now comes pre-shipped on the Raspbian OS, making this answer blatantly wrong. $\endgroup$ Jul 31, 2014 at 0:33
  • $\begingroup$ I updated it. I don't use Mathematica anymore, so I never checked back. $\endgroup$
    – Renan
    Jul 31, 2014 at 0:44
  • $\begingroup$ @Renan I am curious, what has taken its place for you? $\endgroup$
    – Mr.Wizard
    Jul 31, 2014 at 1:02
  • $\begingroup$ @Mr.Wizard mostly those days I use MATLAB and Python. $\endgroup$
    – Renan
    Jul 31, 2014 at 1:03
44
$\begingroup$

Update: Yes, the Wolfram Language (and Mathematica) are now available free (for non-commercial use) on the Raspberry Pi.

Details:

http://www.raspberrypi.org/archives/5282

http://blog.stephenwolfram.com/2013/11/putting-the-wolfram-language-and-mathematica-on-every-raspberry-pi/

===

We are working on a project related to Raspberry Pi at Wolfram Research.

If you are interested in becoming a prerelease tester for this project, please send email to [email protected]. Please be sure to include your name, wolframid and any ideas you have on using Mathematica on a Raspberry Pi.

$\endgroup$
4
  • $\begingroup$ Upvoted, since finally someone at WRI answered. Was it two months ago Mr. Wolfram mentioned something like that in a speech? $\endgroup$
    – Stefan
    Jul 22, 2013 at 20:25
  • 1
    $\begingroup$ Thanks. As a representative from a British high school, I have emailed and am interested to see the result. $\endgroup$ Jul 22, 2013 at 20:56
  • 1
    $\begingroup$ @stefan a bit longer $\endgroup$
    – cormullion
    Jul 22, 2013 at 22:22
  • $\begingroup$ @cormullion uff...time is fleeting. anyways. nitpicker :) $\endgroup$
    – Stefan
    Jul 22, 2013 at 22:24
13
$\begingroup$

Just for kicks, I ran the "Benchmark Mathematica" test:

  • Raspberry Pi model B
  • Over-clocked CPU @ 800 MHz
  • 64 of 256 MB RAM reserved for video
  • 16 GB Class 10 SSD (going to need swap space with only 256 MB)

Results:

Benchmark Result: 0.01

  1. Data Fitting 27.68
  2. Digits of Pi 11.30
  3. Discrete Fourier Transform 73.74
  4. Eigenvalues of a Matrix 126.18
  5. Elementary Functions 153.39
  6. Gamma Function 14.19
  7. Large Integer Multiplication 17.73
  8. Matrix Arithmetic 25.21
  9. Matrix Multiplication 1070.78
  10. Matrix Transpose 35.56
  11. Numerical Integration 33.52
  12. Polynomial Expansion 4.55
  13. Random Number Sort 24.37
  14. Singular Value Decomposition 410.94
  15. Solving a Linear System 720.21

  16. Total: 2749.33

I was impressed that the test actually finished. The desktop remained responsive (when I moved the mouse, the cursor always responded smoothly and immediately).

I didn't monitor temperatures, but all chips on the motherboard were comfortable to the touch.

If I did the test over again, I'd probably monitor the temperatures in software as well as monitor the size of the swap file.

$\endgroup$
8
  • 3
    $\begingroup$ Seems to me that this is actually quite a satisfactory level of performance. Apart from the numerical linear algebra tests (heavily memory bandwidth-bound and probably not using an optimized BLAS/LAPACK), the other timings are only about 10-20 times greater than for a typical desktop PC. Raspberry Pi is apparently a very reasonable proposition in terms of price/performance. Perhaps a future release of Mathematica for ARM could employ ATLAS and FFTW, which now both support ARM? The authors of OpenBLAS are also working on an ARM port. $\endgroup$ Nov 27, 2013 at 1:19
  • $\begingroup$ Can you include a link or description of the benchmark test? $\endgroup$ Nov 27, 2013 at 2:32
  • $\begingroup$ I benchmarked my system PC at 3Ghz and i measured also 10-20 times faster than rasp. For matrices operations it was even 1000 times faster but i suppose this has to do with the available memory. Model-B runs at 700Mhz so 10-20 times slower than a single kernel on 3000Mhz means that Pi's power is not exploited too efficiently by wolfram-engine. $\endgroup$
    – tchronis
    Nov 27, 2013 at 9:24
  • $\begingroup$ @cjpembo your link above is dead... $\endgroup$
    – tchronis
    Nov 27, 2013 at 9:25
  • 1
    $\begingroup$ Wolfram also included a Remote Developemt Kit which allows: "Seamless development on the Raspberry Pi from any desktop version of Mathematica, including Home and Student Editions." wolfram.com/raspberry-pi/RemoteDevelopmentKitInstaller.cdf $50 Mathematica-powered remote "sensors" sounds like fun! $\endgroup$
    – cjpembo
    Nov 27, 2013 at 16:29
11
$\begingroup$

Here's an article I wrote about Mathematica on raspberry pi. It turns out that pi version of Mathematica is v10 which allows us to get a preview of what's coming soon to the desktop (currently at 9.0.1). Also, speed comparisons with desktop version and python.

http://www.walkingrandomly.com/?p=5220

$\endgroup$
1
  • $\begingroup$ I think that Raspberry Pi will never approach a desktop PC for numerical linear algebra performance, not due to the lack of any special instruction sets but simply because of the much simpler cache hierarchy and memory controller. High bandwidth, low latency buses have high power requirements and large, fast caches require a lot of die area. Nonetheless, I think that a factor of 100 difference is probably more realistic than 1000, i.e. there is potentially a factor of 10 to be gained over the current situation by using optimized libraries. $\endgroup$ Nov 27, 2013 at 14:04
10
$\begingroup$

Update

For those working in STEM education, there will be a presentation on running Mathematica on the Raspberry Pi on September 17th during the Virtual Conference for Education, see here for more details:

https://www.wolfram.com/events/virtual-conference/stem-education-2013/schedule.html

$\endgroup$
1
  • $\begingroup$ N.B.: one can watch the presentation videos on the WRI website, so although the date has passed, the answer is still relevant. $\endgroup$ Nov 27, 2013 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.