Wolfram Language

The Wolfram Language ( ) is a proprietary, high-level multi-paradigm programming language developed by Wolfram Research.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

The Wolfram Language ( ) is a proprietary, high-level multi-paradigm programming language developed by Wolfram Research. It emphasizes symbolic computation, functional programming, and rule-based programming and can employ arbitrary structures and data. It is the programming language of the mathematical symbolic computation program Mathematica.

History

The Wolfram Language was part of the initial version of Mathematica in 1988. Symbolic aspects of the engine make it a computer algebra system. The language can perform integration, differentiation, matrix manipulations, and solve differential equations using a set of rules.

Also, the initial version introduced the notebook model and the ability to embed sound and images, according to Theodore Gray's patent. Wolfram also added features for more complex tasks, such as 3D modeling.

A name was finally adopted for the language in 2013, as Wolfram Research decided to make a version of the language engine free for Raspberry Pi users, and they needed to come up with a name for it. It was included in the recommended software bundle that the Raspberry Pi Foundation provides for beginners, which caused some controversy due to the Wolfram language's proprietary nature.

Plans to port the Wolfram language to the Intel Edison were announced after the board's introduction at CES 2014 but were never released. In 2019, a link was added to make Wolfram libraries compatible with the Unity game engine, giving game developers access to the language's high-level functions. Print["Hello, World!"]

(* This is a comment. *) 4 + 3 (* = 7 *) 1 + 2 * (3 + 4) (* = 15 *) (* Note that Multiplication can be omitted: 1 + 2 (3 + 4) *) (* Divisions return rational numbers: *) 6 / 4 (* = 3/2 *) Function calls are denoted with square brackets: Sin[Pi] (* = 0 *) (* This is the function to convert rationals to floating point: *) N[3 / 2] (* = 1.5 *) Lists are enclosed in curly brackets: Oddlist={1,3,5} (* = {1,3,5} *) FullForm[1+2] (* = Plus[1, 2] *) F[x_] := x ^ 0 The is a "SetDelayed operator", so that the x is not immediately looked for. is syntax sugar for , i.e. a "blank" for any value to replace x in the rest of the evaluation. An iteration of bubble sort is expressed as: sortRule := {x___,y_,z_,k___} /; y>z -> {x,z,y,k} (* Rule[Condition[List[PatternSequence[x, BlankNullSequence[ , Pattern[y, Blank[ , Pattern[z, Blank[ , PatternSequence[k, BlankNullSequence[ ], Greater[y, z , List[x, z, y, k *) The operator is "condition", so that the rule only applies when .

The three underscores are a syntax for a , for a sequence that can be null. A ReplaceRepeated operator can be used to apply this rule repeatedly, until no more change happens: { 9, 5, 3, 1, 2, 4 } //. sortRule (* = ReplaceRepeated[{ 9, 5, 3, 1, 2, 4 }, sortRule] *) (* = {1, 2, 3, 4, 5, 9} *) The pattern matching system also easily gives rise to rule-based integration and derivation.

The following are excerpts from the Rubi package of rules: (* Reciprocal rule *) Int[1/x_,x_Symbol] := Log[x]; (* Power rule *) Int[x_^m_.,x_Symbol] := x^(m+1)/(m+1) /; FreeQ[m,x] && NeQ[m,-1]

Naming

The language was officially named in June 2013 and has been used as the backend of Mathematica and other Wolfram technologies for over 30 years.

See also

Notebook interface

Documentation for the Wolfram Language An Elementary Introduction to the Wolfram Language

Text derived from https://en.wikipedia.org/w/index.php?oldid=1373281960 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

26 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.