Neuron 101

Math foundations / Vector addition and scaling

Türkçe

Plate2

Unit 1 · Topic 2 of 11

Vector addition and scaling

Easy, 6 min, 6 steps

a
Keyboard: left and right arrows change the step, space plays and pauses.

Step 1 of 6 a

The first vector a

a = (3, 1). The black arrow that leaves the origin.

Open in Colab
  1. a = [3.0, 1.0]
  2. b = [1.0, 2.5]
  3. k = 1.5
  4. toplam = [a[0] + b[0], a[1] + b[1]]
  5. olcekli = [k * a[0], k * a[1]]
  6. print(toplam, olcekli)
ax
3
ay
1
bx
1
by
2.50
k
1.50
tx
4
ty
3.50
kax
4.50
kay
1.50