Slope

m=fracy2y1x2x1m = \\frac{y_2-y_1}{x_2-x_1}

What it does

Calculates slope from the supplied values.

When to use it

Use this mathematics formula when the named quantities are known.

Variables

Worked example

{
  "inputs": {
    "x1": 2,
    "x2": 5,
    "y1": 2,
    "y2": 8
  },
  "result": 2
}

Common mistakes

Check units, signs, brackets and that every value is entered in the stated units.