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, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

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?

Consider 2 points A(x1,y1) and B(x2,y2), the calculation of the slope coefficient of the line or the segment passing through points A and B is the result of fraction : $$ \frac{y2-y1}{x2-x1} $$

Example: A(1,2) and B(3,4), the slope value 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.

What is the slope coefficient of an horizontal line?

If a line is vertical then the slope coefficient is 0.

How to demonstrate that 2 lines are parallel?

Two lines are parallel if and only if their directors 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. 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, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Slope Coefficient script for offline use, for you, your company or association, see you on contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK