"Mathematica (programming language)" and "Mathematica programming language" redirect here. For the programming language used by Mathematica, see Wolfram (programming language).
Mathematica is a computational software program used in many scientific, engineering, mathematical and computing fields, based on symbolic mathematics. It was conceived by Stephen Wolfram and is developed by Wolfram Research of Champaign, Illinois.^{[4]}^{[5]}
Using both "free-form linguistic input" (a natural language user interface) ^{[10]} and Mathematica language in notebook when connected to the Internet
Interface[edit]
Mathematica is split into two parts, the kernel and the front end. The kernel interprets expressions (Mathematica code) and returns result expressions.
The front end, designed by Theodore Gray, provides a GUI, which allows the creation and editing of Notebook documents containing program code with prettyprinting, formatted text together with results including typeset mathematics, graphics, GUI components, tables, and sounds. All contents and formatting can be generated algorithmically or interactively edited. Most standard word processing capabilities are supported, but there is only one level of "undo." It includes a spell-checker but does not spell check automatically as you type.
Documents can be structured using a hierarchy of cells, which allow for outlining and sectioning of a document and support automatic numbering index creation. Documents can be presented in a slideshow environment for presentations. Notebooks and their contents are represented as Mathematica expressions that can be created, modified or analysed by Mathematica programs. This allows conversion to other formats such as TeX or XML.
The front end includes development tools such as a debugger, input completion and automatic syntax coloring.
Among the alternative front ends is the Wolfram Workbench, an Eclipse based IDE, introduced in 2006. It provides project-based code development tools for Mathematica, including revision management, debugging, profiling, and testing.^{[11]} The Mathematica Kernel also includes a command line front end.^{[12]} Other interfaces include JMath,^{[13]} based on GNU readline and MASH^{[14]} which runs self-contained Mathematica programs (with arguments) from the UNIX command line.
Version 5.2 (2005) added automatic multi-threading when computations are performed on multi-core computers.^{[17]} This release included CPU specific optimized libraries. In addition Mathematica is supported by third party specialist acceleration hardware such as ClearSpeed.^{[18]}
Support for CUDA and OpenCLGPU hardware was added in 2010. Also, since version 8 it can generate C code, which is automatically compiled by a system C compiler, such as Intel C++ Compiler or compiler of Visual Studio 2010.
Deployment[edit]
There are several ways to deploy applications written in Mathematica:
Mathematica Player Pro is a runtime version of Mathematica that will run any Mathematica application but does not allow editing or creation of the code.^{[20]}
A free-of-charge version, Wolfram CDF Player, is provided for running Mathematica programs that have been saved in the Computable Document Format (CDF).^{[21]} It can also view standard Mathematica files, but not run them. It includes plugins for common web browsers on Windows and Macintosh.
webMathematica allows a web browser to act as a front end to a remote Mathematica server. It is designed to allow a user written application to be remotely accessed via a browser on any platform. It may not be used to give full access to Mathematica.
Mathematica code can be converted to C code or to an automatically generated DLL.
Connections with other applications[edit]
Communication with other applications occurs through a protocol called MathLink. It allows communication between the Mathematica kernel and front-end, and also provides a general interface between the kernel and other applications. Wolfram Research freely distributes a developer kit for linking applications written in the C programming language to the Mathematica kernel through MathLink.^{[22]} Using J/Link.,^{[23]} a Java program can ask Mathematica to perform computations; likewise, a Mathematica program can load Java classes, manipulate Java objects and perform method calls. Similar functionality is achieved with .NET /Link,^{[24]} but with .NET programs instead of Java programs. Other languages that connect to Mathematica include Haskell,^{[25]}AppleScript,^{[26]}Racket,^{[27]}Visual Basic,^{[28]}Python^{[29]}^{[30]} and Clojure.^{[31]}
Links are available to many specialized mathematical software packages including OpenOffice.org Calc,^{[32]}Microsoft Excel,^{[33]}MATLAB,^{[34]}^{[35]}^{[36]}R,^{[37]}Sage,^{[38]}^{[39]}SINGULAR,^{[40]}Wolfram SystemModeler and Origin.^{[41]} Mathematical equations can be exchanged with other computational or typesetting software via MathML.
Communication with SQL databases is achieved through built-in support for JDBC.^{[42]} Mathematica can also install web services from a WSDL description.^{[43]}^{[44]}
Mathematica can capture real-time data via a link to LabVIEW,^{[45]} from financial data feeds^{[46]} and directly from hardware devices via GPIB (IEEE 488),^{[47]}USB^{[48]} and serial interfaces.^{[49]} It automatically detects and reads from HID devices.
Computable data[edit]
A stream plot of live weather data
Mathematica includes collections of curated data provided for use in computations. Mathematica is also integrated with Wolfram Alpha, an online service which provides additional data, some of which is kept updated in real time. Some of the data sets include astronomical, chemical, geopolitical, language, biomedical and weather data, in addition to mathematical data (such as knots and polyhedra).^{[50]}
Design[edit]
Wolfram Research provides documents listing the algorithms used to implement the functions in Mathematica.
Licensing and Platform availability[edit]
Mathematica is proprietary software licensed at a range of prices for commercial, educational, and other uses.^{[51]}
Mathematica 9 is supported on various versions of Microsoft Windows (XP SP3, Vista, 7 and 8), Apple's OS X, Linux and Raspbian.^{[52]} All platforms are supported with 64-bit implementations.^{[53]} Earlier versions of Mathematica up to 6.0.3 supported other operating systems, including Solaris, AIX, Convex, HP-UX, IRIX, MS-DOS, NeXTSTEP, OS/2, Ultrix and Windows Me.^{[54]}
The name of the program “Mathematica” was suggested to Stephen Wolfram by Apple co-founder Steve Jobs although Stephen Wolfram had thought about it earlier and rejected it.^{[74]}