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.

Slope Coefficient - dCode

Tag(s) : Geometry, Functions

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*!

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} $$

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

Any line on the plane corresponds to an affine function of equation $ y = ax + b $ with $ a $ the directional coefficient and $ b $ the ordinate at the origin.

After finding the equation of the line from the directing coefficient (see above), then take 2 values for $ x $ (for example $ 0 $ and $ 1 $) and calculate the value of $ y $ for each value . The values $ (x_1, y_1) $ and $ (x_2, y_2) $ are the coordinates of 2 points on the line, connecting them is enough to draw the line.

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

If 2 lines have the same director coefficient then they are parallel.

Two lines are perpendicular (orthogonal) if and only if the product (multiplication) of their slope coeffifients is $ -1 $

If the product (multiplication) of the slope coefficients of 2 lines is $ -1 $, then the 2 lines are orthogonal (perpendicular)

dCode retains ownership of the "Slope Coefficient" source code. Except explicit open source licence (indicated Creative Commons / free), the "Slope Coefficient" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Slope Coefficient" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Slope Coefficient" are not public, same for offline use on PC, tablet, iPhone or Android !

The copy-paste of the page "Slope Coefficient" or any of its results, is allowed as long as you cite the online source

Reminder : dCode is free to use.

- Slope Coefficient Calculator
- How to calculate slope coefficient?
- What is the slope coefficient of a vertical line?
- What is the slope coefficient of an horizontal line?
- How to find the equation of a line with the slope coefficient?
- How to draw a line with the slope coefficient?
- How to demonstrate that 2 lines are parallel?
- How to demonstrate that 2 lines are perpendicular?

coefficient,slope,line,equation,vertical,horizontal,affine,function

Source : https://www.dcode.fr/slope-coefficient

© 2022 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback