Tool to calculate a right equation from 2 points. The equation of a line is written ax + b with a, the direction coefficient (or slope) and b, the y-intercept.

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

Sponsored ads

Tool to calculate a right equation from 2 points. The equation of a line is written ax + b with a, the direction coefficient (or slope) and b, the y-intercept.

A line of the plane (2D) has an equation of the form \( a x + b \), with \( a \) its slope coefficient and \( b \) the y-intercept.

Knowing the slope coefficient and the ordinate at the origin, is deduced the equation of the line.

Example: A line of slope coefficient 2 and intercept 3 has the equation \( 2x + 3 \)

From 2 points \( A(x_A, y_A) \) and \( B(x_B, y_B) \), the formula for the slope coefficient of the line or segment passing through the points A and B is the result of the fraction: $$ \ frac {y2-y1} {x2-x1} $$

Example: A line passes through 2 points A(1,2) and B(3,4), the slope coefficient is \( \frac{4-2}{3-1} = \frac{2}{2} = 1 \)

From the slope coefficient \( a \) and a point \( A(x_A, y_A) \), the computation formula of the y-intercept is the result \( b \) of the equation $$ a x_A + b = y_A $$

Example: A line with slope coefficient \( 3 \) goes through A(2,4), so \( 3 \times 2 + b = 4 \iff b = -2 \), so the y intercept is -2

dCode retains ownership of the source code of the script Linear Equation 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 Linear Equation script for offline use on PC, iPhone or Android, ask for price quote on contact page !

line,linear,equation,coefficient,slope,equation,abcissae,ordinate,origin,affine,function

Source : https://www.dcode.fr/linear-equation

© 2019 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode

Feedback

▲