Search for a tool
Linear Equation

Tool to calculate a linear 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.

Results

Linear Equation -

Tag(s) : Geometry, Functions

Share
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Thanks to your feedback and relevant comments, dCode has developed the best 'Linear Equation' tool, so feel free to write! Thank you!

Linear Equation

Sponsored ads

Linear Equation Calculator (2D plane)





Answers to Questions (FAQ)

How to calculate the equations of a line?

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

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

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

How to calculate slope coefficient?

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{y_B-y_A}{x_B-x_A} $$

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 $

How to calculate the y intercept?

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

Source code

dCode retains ownership of the online "Linear Equation" source code. Except explicit open source licence (indicated CC / Creative Commons / free), the "Linear Equation" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Linear Equation" 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, copy-paste, or API access for "Linear Equation" are not public, same for offline use on PC, tablet, iPhone or Android ! Remainder : dCode is free to use.

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Thanks to your feedback and relevant comments, dCode has developed the best 'Linear Equation' tool, so feel free to write! Thank you!


Source : https://www.dcode.fr/linear-equation
© 2021 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
Feedback