2.0
1.0
0.0
$$ \begin{aligned} z &= f(x),\\[2pt] z &= w_1\,x_1 + w_2\,x_2 + b,\\[2pt] y = g(z) &= \begin{cases} 1, & z \ge 0,\\ 0, & z < 0~. \end{cases} \end{aligned} $$
x₁:
x₂:
z =
y =
z
y
+3 0 −3 z = f(x)
1 0 y
x₁ x₂ w₁ w₂ z y