Mathematica: Procedural Programming

Favorite Article   

x= value (Set) -- set the value for a variable

expr;expr;expr (CompoundExpression) -- execute expressions in sequence
 

Assignments:

  • =
  • +=
  • ++
  • *=
  • AppendTo...

Loops:

  • Do
  • While
  • For
  • Table
  • Nest..

Conditionals:

  • If
  • Which
  • Switch
  • And(&&)
  • Equal(==)
  • Less(<)...

Flow Control:

  • Return
  • Throw
  • Catch
  • TimeConstrained...

Scoping Constructs:

  • Module
  • With
  • Block...

Input, Output, Etc.:

  • Print
  • Input
  • Pause
  • Import
  • OpenRead...

 

Referenced from: Mathematica

19584
12/21/2017 1:32:10 PM