Function reference · Linear algebra
line
Returns the equation expression for the line through two two-dimensional points.
line(p1,p2[, dimension]) accepts two two-element vectors. The optional dimension selects the independent variable and defaults to x.
Examples
These examples use Nerdamer Notation.
Construct the line through the origin and (1,1).
line([0,0],[1,1])Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
line(arg1, arg2, [arg3])
nerdamer.line
Call the operation through the default nerdamer import.
nerdamer.line(p1: Vector, p2: Vector, dimension: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
p1 | Vector | — |
p2 | Vector | — |
dimension | ExpressionInput | — |
