Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute properties of the line parallel to a given line and passing through a given point
ResourceFunction["ParallelLineThrough"][expr,{x,a},{y,b}] returns an Association of properties for the line passing through the point {x,y}={a,b} and parallel to expr, a linear function in x. | |
ResourceFunction["ParallelLineThrough"][expr,{x,a},{y,b},prop] returns the parallel line property prop. |
| "SlopeInterceptEquation" | equation of the parallel line in slope-intercept form |
| "StandardFormEquation" | equation of the parallel line in standard form |
| "PointSlopeEquation" | equation of the parallel line in point-slope form |
| "Slope" | slope of the parallel line |
| "HorizontalIntercept" | horizontal intercept of the parallel line |
| "VerticalIntercept" | vertical intercept of the parallel line |
| "Plot" | plot of the parallel line |
| All | Association of all allowed properties |
Get the point-slope equation of a line parallel to y=5x that passes through the point (x,y)=(3,4):
| In[1]:= |
| Out[1]= |
Visualize this result:
| In[2]:= |
| Out[2]= | ![]() |
Compute the slope of this line:
| In[3]:= |
| Out[3]= |
Compute the horizontal intercept of this line:
| In[4]:= |
| Out[4]= |
Get the standard form equation of this line:
| In[5]:= |
| Out[5]= |
Get an Association of properties of a line parallel to y=-x/2+4 that passes through the point (x,y)=(3/5,6/7):
| In[6]:= |
| Out[6]= | ![]() |
Get just the slope-intercept equation of this line:
| In[7]:= |
| Out[7]= |
The first argument to ParallelLineThrough must be a linear function of x:
| In[8]:= |
| Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License