The Wolfram Language has a rich syntax carefully designed for consistency and efficient, readable entry of the Wolfram Language's many language, mathematical, and other constructs. In addition to ordinary linear ASCII input, the Wolfram Language also supports full 2D mathematical input.
The Wolfram Language has a rich syntax carefully designed for consistency and efficient, readable entry of the Wolfram Language's many language, mathematical, and other constructs. In addition to ordinary linear ASCII input, the Wolfram Language also supports full 2D mathematical input.
- Pricing for nonprofessional Mathematica use by hobbyists and enthusiasts. Desktop, online, cloud options. Select the license that best fits your needs.
- Challenge yourself! Test your Wolfram Language coding skills with programming puzzles spanning computation, math and language.
Basic Syntax
f[x,y]-- function arguments go in square brackets
Exp, Do, ..-- built-in symbols have names beginning with capital letters
{…} (List) ▪ '…' (String) ▪ e[[i]] (Part) ▪ e[[i;;j]] (Span)
Basic Operations
x=val-- set a value (=. to clear a value)
xval-- test equality or represent a symbolic equation (!= for unequal)
lhs:=rhs-- function etc. definition
a->b, ab-- rule for transformations, options, etc. (:> for delayed rule) Wonderpen 1 3 3 download free.
expr/.rule-- replace using a rule ('slash dot')
Https Www Wolfram Com Mathematica Github
Mathematics & Operators
+ ▪ - ▪ * ▪ / ▪ ^ (Power) ▪ && (And) ▪ || (Or) ▪ ! (Not) ▪ <> (StringJoin)
abc-- spaces stand for multiplication
nn*^ee-- scientific notation
b^^nnnn-- number in a base
∈ (Element) ▪ (Distributed) ▪ (UndirectedEdge) ▪ (DirectedEdge)
Patterns
x_-- any expression ('x blank')
x__, x___-- sequences of arbitrary expressions ('x double blank', ..)
_, __, ___-- unnamed patterns
x:p-- pattern name
p:d-- pattern default
. (Repeated) ▪ | (Alternatives) ▪ /; (Condition) ▪ ? (PatternTest)
Pure Functions
expr &-- a pure function
#, #2, etc. -- arguments in a pure function
#name-- named part of a pure function argument
Short Forms
f @ expr-- prefix function application
expr//f -- postfix function application ('slash slash')
/@ (Map-- 'slash at') ▪ @@,@@@ (Apply) ▪ ~~ (StringExpression) ▪ (SameQ)
Program Syntax
expr; expr; expr-- sequence of commands (CompoundExpression)
<< file-- input a file (>>file, >>>file for outputting to a file)
(* … *)-- comment
ccc`nnn-- symbol in context ccc
Session Syntax
Mathematica Free
![Wolfram Wolfram](https://demonstrations.wolfram.com/EnergyLevelDiagramsAndMolecularOrbitalsForConjugatedPolyenes/img/EnergyLevelDiagramsAndMolecularOrbitalsForConjugatedPolyenes.png)
%-- most recent output (%n for output on line n)
? x-- information on symbol
- ▪▪▪▪▪
- ▪▪▪