What programming languages do mathematicians use? - MathOverflow [closed]most recent 30 from http://mathoverflow.net2013-05-23T01:45:14Zhttp://mathoverflow.net/feeds/question/11084http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-useWhat programming languages do mathematicians use?fuentesjr2010-01-08T01:54:23Z2013-04-28T04:21:27Z
<p>Ok I understand this might be a slightly subjective question, but I am honestly curious what programming languages are used by the mathematics community.</p>
<p>I would imagine that there is a group of mathematicians out there that use haskell because it might be more consistent with ideas from mathematics. Is this true? </p>
<p>What about APL? Do mathematicians today <a href="http://www.youtube.com/watch?v=a9xAKttWgP4" rel="nofollow">use APL</a> or is that just a relic of the past?</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11086#11086Answer by Ryan Budney for What programming languages do mathematicians use?Ryan Budney2010-01-08T02:11:09Z2010-01-08T02:20:29Z<p>It seems most software used by low-dimensional topologists is written in things like C, C++ and Python. SnapPea, Regina, Orb, GAP, etc. </p>
<p>I don't think I've ever heard of APL before. Haskell I have heard about but it was only in passing -- I think a thread (here) on programming languages that are structured in a category-friendly way. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11088#11088Answer by Jonas Meyer for What programming languages do mathematicians use?Jonas Meyer2010-01-08T02:24:49Z2010-01-30T19:05:32Z<p>At least one mathematician primarily uses Maple. See Doron Zeilberger's <a href="http://www.math.rutgers.edu/~zeilberg/Opinion92.html" rel="nofollow">92<sup>nd</sup> Opinion</a> and <a href="http://www.math.rutgers.edu/~zeilberg/programs.html" rel="nofollow">programs</a>.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11090#11090Answer by Adam for What programming languages do mathematicians use?Adam2010-01-08T02:39:37Z2010-01-08T02:39:37Z<p><a href="http://www.haskell.org/" rel="nofollow">Haskell</a> is very popular with category theorists. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11092#11092Answer by david karapetyan for What programming languages do mathematicians use?david karapetyan2010-01-08T03:01:24Z2010-01-08T03:07:13Z<p>Two of my favorites are Haskell and Ruby. I like Haskell because it is computable category theory and Ruby because it is really easy to write scripts and other various prototype kinds of code. Although any language that has functional programming constructs and closures is usually fun to use. Maple and Mathematica fall in this category and they are fun to use when I need heavy duty symbolic and plotting facilities.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11093#11093Answer by Steve Huntsman for What programming languages do mathematicians use?Steve Huntsman2010-01-08T03:05:38Z2010-01-08T03:05:38Z<p>Having an industrial focus for most of my career, I personally find MATLAB to be very useful. It is only on very rare occasions that I find Maple (or Mathematica) to be that helpful (the last time I recall using symbolic code for more than convenience was in confirming my calculations for Haar measures for a non-unimodular Lie group some years ago). </p>
<p>One of the nicest things about using something like MATLAB (or Octave) is that using a numerical environment forces you to be careful in a way that symbolic ones don't, while allowing you to gloss over details that would be very time consuming in other languages. Often times using Boolean variables or clever use of primes allows a considerable amount of "symbolic" computation that is much easier to translate into practical code. It's not Grobner bases or whatever but it's usually pretty effective.</p>
<p>I have made it a standard practice for most of my company's code to be prototyped in MATLAB, whether it's mathematically oriented or not. This is also very helpful for validating outputs against C or Java code as well as checking that graphs using Swing, OpenGL, etc. are displaying properly.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11096#11096Answer by Rune for What programming languages do mathematicians use?Rune2010-01-08T03:28:42Z2010-01-08T03:28:42Z<p>BASIC! Gotta love the "goto" command.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11099#11099Answer by John D. Cook for What programming languages do mathematicians use?John D. Cook2010-01-08T03:57:32Z2010-01-08T03:57:32Z<p>Mathematica and Matlab are popular among mathematicians. R is popular among statisticians. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11101#11101Answer by Mikael Vejdemo-Johansson for What programming languages do mathematicians use?Mikael Vejdemo-Johansson2010-01-08T04:05:19Z2012-03-31T21:02:26Z<p>APL as such is probably less in use nowadays - but its ASCII sibling J is quite usable, and has interesting grammatic and mathematical constructions.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11102#11102Answer by Noah Snyder for What programming languages do mathematicians use?Noah Snyder2010-01-08T04:11:20Z2010-01-08T04:26:35Z<p>There are lots of subject specific packages written by mathematicians out there: GAP, PARI/GP, SnapPea, Macaulay (1 and 2), Magma, Singular, etc. Sage is a new python based open-source project that is trying to absorb these, its rate of progress is better in number theory than in other subjects, but Sage is the best thing to learn if you're starting from scratch. It's also Python based.</p>
<p>There are also commercial programs: Mathematica, Maple, Matlab, etc. In the circles I run in Mathematica is the most popular.</p>
<p>Of course for things where you need serious speed people tend to use C++, Java or some other lower level language.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11123#11123Answer by Ilya Nikokoshev for What programming languages do mathematicians use?Ilya Nikokoshev2010-01-08T08:25:49Z2010-01-08T08:25:49Z<p>People in math seem to be pretty fond of <strong><a href="http://python.org/" rel="nofollow">Python</a></strong> (me included).</p>
<p>As an evidence, search on MathOverflow for posts where people mention the fact that they wrote a program, and it's nearly always either a special math framework (like Maple, Sage, Magma or other answers here) or Python.</p>
<p>And, by the way, Python is <strong>compiled to bytecode</strong>, which is run by VM. It's not much different from Java or precompiled JavaScript in that.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11126#11126Answer by kweinert for What programming languages do mathematicians use?kweinert2010-01-08T09:10:35Z2010-01-08T09:34:18Z<p>For large-scale optimization, GAMS [1] should be considered.
For automated proof checking, there are several packages out there, see e.g. [2].</p>
<p>However, I voted up Mathematica and R, since that are the tools I use.</p>
<p>[1] <a href="http://de.wikipedia.org/wiki/General_Algebraic_Modeling_System" rel="nofollow">http://de.wikipedia.org/wiki/General_Algebraic_Modeling_System</a></p>
<p>[2] <a href="http://en.wikipedia.org/wiki/Automated_proof_checking" rel="nofollow">http://en.wikipedia.org/wiki/Automated_proof_checking</a></p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11135#11135Answer by Kevin Buzzard for What programming languages do mathematicians use?Kevin Buzzard2010-01-08T11:26:26Z2010-01-08T11:26:26Z<p>Bryan Birch is credited with once saying that he programmed in a very high-level programming language called "graduate student".</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11137#11137Answer by Bruce Arnold for What programming languages do mathematicians use?Bruce Arnold2010-01-08T12:18:44Z2010-01-08T12:18:44Z<p>For mathematicians which do scientific computing in the sens of numerical analysis a very good choice are the XSC languages (C-XSC and Pascal-XSC) which provide tools to solve numerical problems <i>with a verification of the results</i>. See U. Kulisch et alia, Springer Series in Computational Mathematics, vol. 21, for an introduction to Verified Computing and this link for the <a href="http://www.math.uni-wuppertal.de/~xsc/" rel="nofollow">software</a>. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11143#11143Answer by Boris Bukh for What programming languages do mathematicians use?Boris Bukh2010-01-08T14:04:54Z2010-01-08T14:04:54Z<p>I mostly use C, with occasional quick and dirty calculation in Mathematica. Much of the programming that I do is searching for various examples. Moreover, since the objects I tend to be interested are relatively concrete, I rarely need any libraries to support high-level mathematical function, and C provides the speed and smaller memory footprint that allows me to do bigger calculations. </p>
<p>When I need to do a quick and simple (usually symbolic) calculation, I reach for Mathematica because it has quite a few high-level functions, and I am already familiar with it. However, I regard the answers it gives in the same way I treat announcements of new results: likely to be true, but until I check myself, I cannot trust it. That is because I have encountered its bugs way too many times to take its answers for granted.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11189#11189Answer by Alexander Woo for What programming languages do mathematicians use?Alexander Woo2010-01-08T21:07:10Z2010-01-08T21:07:10Z<p>I still use Lisp occasionally!</p>
<p>I use Maple if I need anything symbolic (and I have a decent little library of code for what I need; otherwise I'd switch), but one of the annoying things I find about Maple is that its functional programming constructs are remarkably clunky (and apparently poorly implemented).</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/11235#11235Answer by rees evans for What programming languages do mathematicians use?rees evans2010-01-09T14:17:43Z2010-01-09T14:17:43Z<p>I like mathematica for most things. Particularly version 7. Scheme is a great way to think about computing in general. I think procedural languages are too mechanistic, as a mathematician I tend to think in terms of mappings. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/13494#13494Answer by Kostya for What programming languages do mathematicians use?Kostya2010-01-30T18:51:07Z2010-01-30T18:51:07Z<p>No one mentioned OCAML here, so I think It is my "duty" to add this language.</p>
<p>OCAML slightly less "extravagant" than Haskell.
It allows you write partially imperative programs in a way that most "non-functional people" would understand. So it is easier to learn and after you did it -- Haskell will be a breeze for you.</p>
<p>OCAML also is VERY strictly typed. If you know exactly what you want then it will be nearly impossible to make a mistake. The language is very fast and has a lot of tools distributed with it. Many people consider the language as alternative for C. Last but not least -- there is a F# language -- .NET version of OCAML supported by Microsoft.</p>
<p>So if I need to quickly check some idea -- I use Mathematica or Haskell.
But if I need to write something that should be reliable and stable, so I can share the program with others -- then I use OCAML.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/13513#13513Answer by Darsh Ranjan for What programming languages do mathematicians use?Darsh Ranjan2010-01-30T21:52:33Z2010-01-30T21:52:33Z<p>One language I still use is PostScript. I probably need to defend that. </p>
<ol>
<li><p>Its syntax is elegant. In fact, no language I've seen has more uniform syntax: a complete program is syntactically identical to almost any fragment of a program. There are no keywords and very few special cases. </p></li>
<li><p>It can be a lot of fun, and you can make pretty pictures.</p></li>
<li><p>It has very few data types, but some of the ones it does have are surprisingly useful. Dictionaries come to mind immediately. Also, "arrays" (which would be called "lists" in any other language) are extremely flexible. They automatically support comprehensions, not as a separate feature, but as an obvious consequence of the syntax. Functional programmers shouldn't be surprised that procedures are useful as a type; actually, due to the simplicity of the syntax and lack of keywords, any nontrivial program has to work with procedures as data. </p></li>
</ol>
<p>Unfortunately, it has many drawbacks that prevent it from really being useful. Its handling of strings is abominable. Also, it has no facilities for user interaction. Its console I/O is crippled. Things like that could in principle be fixed by appropriate third-party packages, but unfortunately, to my knowledge, there are no third-party packages at all (at least for general programming). Finally, it can be very hard to debug; actually, it is more difficult to debug than any other language I know except assembly. All of those things combine to make it one of the most programmer-unfriendly languages out there. Nevertheless, some of my best work is implemented directly in PostScript, and I have done some real work in it. (Also, let's be fair: PostScript was never intended for general-purpose programming! Using a page-description language for any serious computation at all is some sort of achievement.) </p>
<p>(Language: <b>PostScript</b>. Mathematical interest: its syntax is simple enough to be interesting as a mathematical construction. It's easy to produce some mathematical illustrations, like many types of fractals.)</p>
<p>For real mathematical figures (such as for inclusion in papers), I use MetaPost. PostScript can be used for this purpose, but MetaPost is much better suited for this and is very TeX-friendly.</p>
<p>(Language: <b>MetaPost</b>. Mathematical interest: it's great for making mathematical figures suitable for inclusion in a LaTeX document.) </p>
<p>Another language that I use mostly for fun, not serious work, is x86 assembly language. In contrast to PostScript, it's an ugly language, but strangely, I think I use assembly for some of the same reasons that draw me to PostScript. </p>
<p>(Language: <b>Assembly</b>. Mathematical interest: its execution model is very simple, so expressing algorithms in it is an interesting challenge that mathematicians may enjoy.)</p>
<p>The rest of the languages I use need no introduction: C, C++, Python, Ruby, Java. </p>
<p>(Languages: <b>C, C++, Python, Ruby, Java</b>. Mathematical interest: none in particular, but they're useful in general programming, including mathematical programs.) </p>
<p>I used to use Octave, but apparently most of the world uses Matlab, and Octave has just enough incompatibilities with Matlab to make it annoying to try to use other people's code. Also, it seems to have pretty poor support for sparse matrix computations. </p>
<p>(Language: <b>Octave</b>. Mathematical interest: free approximate-clone of Matlab. It has simple syntax for matrix-centric computation.) </p>
<p>I used to use PHP a lot. Actually, PHP and assembly are sort of an odd couple. A while ago, for no good reason, I tried to come up with the fastest code to print out all the permutations of a string. My best solution (for strings of ~10 or more characters, IIRC) was a combination of PHP and x86 assembly. To be fair, the PHP part could have been done in another language, but PHP was <em>almost</em> the right tool for the job.</p>
<p>(Language: <b>PHP</b>. Mathematical interest: none in particular, but it's great for designing websites with server-side scripting, which is no less useful to mathematicians than it is to other programmers.)</p>
<p>I like Haskell, but I don't use it much. </p>
<p>(Language: <b>Haskell</b>. Mathematical interest: <a href="http://blog.sigfpe.com/2006/01/eleven-reasons-to-use-haskell-as.html" rel="nofollow">sigfpe said it</a>.)</p>
<p>There are other languages I find interesting but never learned properly, like Lisp, Fortran, and Forth. </p>
<p>If anyone's looking for a recommendation, I don't recommend any of those. But learn all of them, and then go off into a dark corner of the universe and come back with the One Language that will rule us all. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/16039#16039Answer by Michael Hoffman for What programming languages do mathematicians use?Michael Hoffman2010-02-22T08:31:23Z2010-02-22T08:31:23Z<p>What language a mathematician uses is highly dependent on the field. I know of algebraists who use Maple, Magma, and Sage. I know numericists who use Fortran (even 77 ><), some who use Matlab, some who use C++ and some who use C (overlapping in many cases). I know of some mathematicians who use Python. I personally like functional languages, thought I am not familiar personally with any mathematicians who use them regularly (by this I mean purely functional languages... the few, the proud). I have seen some people use Mathematica, though I myself don't use it. I know of many mathematicians who try to avoid computers and programming languages.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/16043#16043Answer by Gerhard Paseman for What programming languages do mathematicians use?Gerhard Paseman2010-02-22T10:09:05Z2010-02-22T10:09:05Z<p>For self-education, I have used a wide variety of languages, including BASIC, APL, Pascal, python, and bash. For computer search and verification, I have used bc and awk: bc primarily for "small" bignum computations and awk for its nice handling of defaults and recasting between string and integer types. Awk is also similar to python in that a user can rapidly prototype with it.</p>
<p>Gerhard "Ask Me About System Design" Paseman, 2010.02.22</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/16052#16052Answer by Kurt Luoto for What programming languages do mathematicians use?Kurt Luoto2010-02-22T12:22:05Z2010-02-22T12:22:05Z<p>I will take the original poster's question broadly to include, "What software systems or aids do mathematicians use?", in order to avoid the debate on what exactly constitutes a programming language.</p>
<p>During my previous life as a software developer (mostly embedded software for monitor and control of telecom/datacom gear) I programmed mostly in C, C++, and assembly language for production code, and at times used Forth on the lab bench. I also made fairly extensive use of Unix tools such as sed, awk, and shell scripting for constructing tools for our software development environments (not the target code itself).</p>
<p>Nowadays as an instructor, I occasionally use Mathematica when designing examples for lectures or questions for exams and quizzes. However, I do not write programs in Mathematica. I'm sure Maple or Matlab would suit my needs in this regard just as well as Mathematica does.</p>
<p>As a researcher, I usually write software in Caml (or Ocaml), which, like Haskell, is in the ML family of languages. If I ever come across a problem where speed is crucial, I would probably resort to C++. I dabbled with Sage a couple of years ago, and I will likely do so again someday, assuming that their code base has stabilized a bit since last I used it. (Too many things were in flux at the time for me to feel comfortable using it in earnest.)</p>
<p>And like most everyone these days, I use Latex for my documentation needs, though I have not dug into the depths of Tex. I.e. I am a Latex user, not a Tex programmer.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/18934#18934Answer by porton for What programming languages do mathematicians use?porton2010-03-21T16:06:49Z2010-03-21T16:06:49Z<p>I like Ada-95.</p>
<p>It is a compilable language. Indeed it has debug mode where it is almost at reliable as an interpreter (the only exception from its reliability that deallocation of a dynamic object is unchecked). And it has production mode where it is (AFAIK) comparably fast as C/C++.</p>
<p>If you need to make fast algorithms, choose Ada. (C and C++ are very inconvenient and unreliable, don't choose them.)</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/18980#18980Answer by Tomaž Pisanski for What programming languages do mathematicians use?Tomaž Pisanski2010-03-22T07:59:58Z2010-03-22T07:59:58Z<p>For a while I was fascinated by the simplicity and power of <em>Logo</em> and its tight connection with geometry. I wish <em>Python</em> or <em>magma</em> would have graphics primitives. In the past 15 years I have used mostly <em>Mathematica</em>. It is excellent for small projects but not so good for large ones. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/18984#18984Answer by Rhubbarb for What programming languages do mathematicians use?Rhubbarb2010-03-22T09:42:56Z2010-03-22T09:42:56Z<p>Some of the previous answers mention producing mathematical illustrations.</p>
<p>SVG may be of interest as a language in which to express mathematical illustrations, especially from the point-of-view of having an open standard <a href="http://www.w3.org/TR/SVG/" rel="nofollow">http://www.w3.org/TR/SVG/</a>, and in being scalable (whereas bitmaps are not).</p>
<p>SVG support includes cubic Bézier curves <a href="http://www.w3.org/TR/2003/REC-SVG11-20030114/paths.html#PathDataCubicBezierCommands" rel="nofollow">http://www.w3.org/TR/2003/REC-SVG11-20030114/paths.html#PathDataCubicBezierCommands</a>, useful for function sketches.</p>
<p>The SVG files might be generated from a script written in one of the languages mentioned in other answers here, and are relatively easy to parse (e.g. for transformation purposes) as input using XML libraries.</p>
<p>SVG files might be dropped directly into web pages for on-line documentation, but that relies upon browser support, or the supply of pre-rasterised alternatives.</p>
<p>There are tools for converting both from raster (bitmap) formats to SVG, such as Delineate <a href="http://delineate.sourceforge.net/" rel="nofollow">http://delineate.sourceforge.net/</a>, and from SVG to bitmap, such as the Apache Batik rasteriser <a href="http://xmlgraphics.apache.org/batik/tools/rasterizer.html" rel="nofollow">http://xmlgraphics.apache.org/batik/tools/rasterizer.html</a>.</p>
<p>[I do not know how widely SVG is used by mathematicians, but as a mathematician and programmer, I am attracted to certain properties of SVG itself, and to the availability of tools.]</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/18993#18993Answer by Rhubbarb for What programming languages do mathematicians use?Rhubbarb2010-03-22T11:20:24Z2010-03-22T11:20:24Z<p>In addition to programming languages, of course, some mathematicians use computer algebra systems (CAS). Examples are:</p>
<ul>
<li><em>Axiom</em> <a href="http://axiom-developer.org/" rel="nofollow">http://axiom-developer.org/</a></li>
<li><em>wxMaxima</em> <a href="http://wxmaxima.sourceforge.net/wiki/index.php/Main_Page" rel="nofollow">http://wxmaxima.sourceforge.net/wiki/index.php/Main_Page</a></li>
</ul>
<p>In some cases, the system comes with its own scripting or programming language.</p>
<p>For example, Axiom is associated with the old <em>A#</em> or the new <em>Aldor</em> programming languages.</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/A_Sharp_%28Axiom%29" rel="nofollow">http://en.wikipedia.org/wiki/A_Sharp_%28Axiom%29</a></li>
<li><a href="http://www.aldor.org/" rel="nofollow">http://www.aldor.org/</a></li>
<li><a href="http://axiom-developer.org/axiom-website/bookvol9.pdf" rel="nofollow">http://axiom-developer.org/axiom-website/bookvol9.pdf</a></li>
</ul>
<p>There are many other CAS. Some are primarily numerical, some primarily symbolic, and some are geared to specific domains. With some, there is built-in support for creating mathematical documents. Some are free and open-source; others are commercial, and can be <em>very</em> expensive.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/19002#19002Answer by Rhubbarb for What programming languages do mathematicians use?Rhubbarb2010-03-22T12:14:29Z2010-03-22T12:14:29Z<p>Which 'conventional' programming language a mathematician reaches for depends upon many things. One is familiarity: it is often easier and quicker in the short term to get an answer with a familiar language than with one well-suited to the job.</p>
<p>However, the provision of language features or libraries in a language, or the sheer amount of computation requires may also play a part.</p>
<p>Features of particular note include:</p>
<ul>
<li>support for symbolic manipulation</li>
<li>numerical support of
<ul>
<li>big integers (arbitrary size)</li>
<li>(static) arbitrary precision floating point (FP)</li>
<li>'exact' numerical computation (effectively, dynamic arbitrary precision FP)</li>
<li>error tracking or interval arithmetic </li>
</ul></li>
<li>complex number support</li>
<li>'natural' notation, and brevity</li>
<li>ease of encapsulation</li>
</ul>
<p>Languages of particular note are:</p>
<ul>
<li><strong>ML</strong>, <strong>Haskell</strong>, ... — functional languages feel relatively natural to a mathematician; there are many to choose from, often with fundamental differences semantics (e.g., how <em>lazy</em> the evaluation, how <em>strong</em> the typing).</li>
<li><strong>Q</strong> or <strong>Pure</strong> — so-called <em>equational</em> languages: a variation on functional languages built upon term-rewriting rather than lambda calculus. These are excellent for customised symbolic manipulation. <a href="http://code.google.com/p/pure-lang/" rel="nofollow">http://code.google.com/p/pure-lang/</a></li>
<li><strong>C++</strong> — might be chosen for processing speed. This language is becoming more attractive with recent complex number support, and many useful, well-optimised mathematical libraries such as GMP, Boost/Math, Boost/uBLAS, Boost/Graph, and so on.</li>
<li><strong>Python</strong>, ... — might be chosen for ease of use combined with ability to encapsulate; there are many other scripting languages to choose from, but I suspect that mathematicians would find Python relatively attractive amongst them.</li>
</ul>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/19022#19022Answer by Jacques Carette for What programming languages do mathematicians use?Jacques Carette2010-03-22T15:07:46Z2010-03-22T15:07:46Z<p>[Meta-answer] I believe that the answers already posted to this question lead to a fairly obvious conclusion: other than the 'obvious' domain-specific languages for mathematics, all of which are used (whether the task is computation, typesetting or proof), mathematicians are not 'special' with regards to programming and, as a community, use pretty much the same languages as other communities. The distribution might be somewhat different (i.e. mathematicians might be more daring than average), but probably not <i>that</i> different.</p>
<p>What would be an interesting counter-point is to understand which percentage of mathematicians program.</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/75204#75204Answer by plan9assembler for What programming languages do mathematicians use?plan9assembler2011-09-12T09:52:45Z2011-09-12T09:52:45Z<p><a href="https://secure.wikimedia.org/wikipedia/en/wiki/Array_programming" rel="nofollow">array programming languages</a> like APL, J, K, Mathematica, MATLAB, Nial, PPL, Q</p>
<p>Also, there is c++ math libraries like <a href="http://www.oonumerics.org/blitz/" rel="nofollow">Blitz++</a>, <a href="http://arma.sourceforge.net/" rel="nofollow">Armadillo</a></p>
<p><a href="https://secure.wikimedia.org/wikipedia/en/wiki/Coq" rel="nofollow">coq</a> is an interactive theorem prover written in OCaml</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/75218#75218Answer by Jyrki Lahtonen for What programming languages do mathematicians use?Jyrki Lahtonen2011-09-12T12:55:41Z2011-10-10T19:46:14Z<p>They taught me Pascal in the early 80s, and since I don't want to invest much time to learning the quirks of other languages, it has become a kinda <em>native language</em> for me. Alas, I was forced to migrate from the Borland dialect to FreePascal and/or Delphi with the discontinuation of DOS :-)</p>
<p>My CAS of choice has been Mathematica. Not out of love, but for reasons of availability. It actually is not too bad, once you get used to its idiosyncracies. Earlier I did stuff with Maple for similar reasons.</p>
<p>When I worked in the industry side for a while I had to use ANSI C and Matlab. I will never voluntarily use either again. Too difficult to remember the syntax for file/screen I/O functions or the pointer logic in C, and Matlab is A) outrageously priced, B) for numerical stuff only (but has that excellent support for telecommunications applications, which fitted my former employer nicely).</p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/90550#90550Answer by MAX for What programming languages do mathematicians use?MAX2012-03-08T06:00:37Z2012-03-08T06:00:37Z<p>I'm in an MS in stats program and we don't use the programming languages as much as software packages like R, SAS, STATA, MATLAB and MiniTab. The closest to low a low level programming language is C-Sim which is used for simulating systems. </p>
http://mathoverflow.net/questions/11084/what-programming-languages-do-mathematicians-use/128977#128977Answer by Sloan for What programming languages do mathematicians use?Sloan2013-04-28T04:21:27Z2013-04-28T04:21:27Z<p>I'd like to see an easy to learn programming language with a lot of math in it. Heck, I understand Assembly more than I do Visual Basic!</p>