Set (=)

WMA link


Set[expr, value]

expr = value

evaluates value and assigns it to expr.

{$s_1$, $s_2$, $s_3$} = {$v_1$, $v_2$, $v_3$}

sets multiple symbols ($s_1$, $s_2$, ...) to the corresponding values ($v_1$, $v_2$, ...).

Set can be used to give a symbol a value:

An assignment like this creates an ownvalue:

You can set multiple values at once using lists:

Set evaluates its right-hand side immediately and assigns it to
the left-hand side:

Set always returns the right-hand side, which you can again use
in an assignment:

Set supports assignments to parts:

Set a submatrix:

LoadModule
SetDelayed