Tool for calculating the y-intercept of a line from 2 points or from 1 point and the slope coefficient. Calculation of the intercept of the line with the y-axis.
Y-Intercept - 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!
The y-intercept is the intersection point of the function/line with the y (ordinate) axis for the abscissa value x = 0 (origin).
The general formula for finding the y-intercept of a function $ y = f(x) $ is to calculate the value of $ y $ when $ x = 0 $.
From the function expression
For any function (not necessarily affine/linear), calculate the value for $ x = 0 $. The value obtained is the y-intercept.
Example: A curve of equation $ y = 3x^2 + 1 $, with $ x = 0 $ is $ y = 3 \times 0^2 + 1 = 1 $, so $ 1 $ is the y-intercept
For an equation of a line of the plane, the equation has the form $ a x + b $ with $ b $ the y-intercept.
Example: A line of equation y=3x+4 has 4 as y-intercept
From 2 points (line only)
With 2 points, can be calculated the equation of the line (see the linear equation calculator) and thus to deduce the y-intercept (see above)
From the slope coefficient and 1 point (line only)
Knowing the slope coefficient of a line and a point, can be deduced from the equation of the line (see the linear equation calculation) and thus deduce the y-intercept (see above).
dCode retains ownership of the "Y-Intercept" source code. Except explicit open source licence (indicated Creative Commons / free), the "Y-Intercept" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Y-Intercept" 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 "Y-Intercept" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Y-Intercept" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Y-Intercept on dCode.fr [online website], retrieved on 2024-12-04,