Tool to compute a slope from 2 points. The slope coefficient of a line indicates the variation of the y-coordinate when the x-coordinate increments of 1 unit.

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to compute a slope from 2 points. The slope coefficient of a line indicates the variation of the y-coordinate when the x-coordinate increments of 1 unit.

Answers to Questions

How to calculate slope coefficient?

From 2 points A(x1,y1) and B(x2,y2), the slope coefficient of the line or the segment hat passes through points A and B is calculated from the fraction formula : $$ \frac{y2-y1}{x2-x1} $$

Example: Search the slope of an affine function that goes through 2 points (x-axis, y-axis) A(1,2) and B(3,4), is calculating the slope value which is \( \frac{4-2}{3-1} = \frac{2}{2} = 1 \)

What is the slope coefficient of a vertical line?

If a line is vertical then the slope coefficient is infinity \( \infty \).

What is the slope coefficient of an horizontal line?

If a line is vertical then the slope coefficient is \( 0 \). This is sometimes the case of a tangeant or an asymptote.

How to demonstrate that 2 lines are parallel?

Two lines are parallel if and only if their slope coefficients are equal.

How to demonstrate that 2 lines are perpendicular?

Two lines are perpendicular if and only if the product of their slope coeffifients is -1.

Ask a new question

Source code

dCode retains ownership of the source code of the script Slope Coefficient online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Slope Coefficient script for offline use on PC, iPhone or Android, ask for price quote on contact page !