NYC FIRST
Velocity Arena
Equations
← Back to Velocity Arena
Concept 7 of 8

Equations: Predict Your Bot's Future

y = mx + b. Plug in numbers. Predict results.

distance = × + =
4
5
3
Slope (m)
4
Y-Intercept (b)
5
Input (x)
3
Output (y)
17
LINEAR EQUATION
y = mx + b

One equation. Infinite predictions.

An equation is a prediction machine. Plug in a number, get a result.

Steep
m = 8
vs
Gentle
m = 2

m = how fast things change (the slope). Higher m = steeper line.

Same slope
m = 4
but
Start at 0
b = 0
vs
Start at 15
b = 15

b = where you start (y-intercept). Same slope, different b = parallel lines shifted up or down.

Speed
5
×
Time
3
+
Start
10
=
Distance
25

x = the input. Plug it in, get y. Here: 5 × 3 + 10 = 25.

distance = speed × time + head_start

Your bot's position at any moment in a match.

In Velocity Arena: distance = speed × time + head_start. The equation predicts where your bot will be.

LINEAR EQUATION

Change m or b and the whole line moves.

Change m or b — the whole line moves. Try it in the interactive above!

Speed (m)
6
×
Time (x)
5
+
Head Start (b)
4
Formula:
distance = 6 × 5 + 4

Your bot has Speed = 6, Head Start = 4. At time = 5, what is the distance?