Find the intersection of two lines: Difference between revisions

m
Line 253:
⍝ The ( 4 1 ) matrix as the right argument.
⍝ ( 6 1 )
TheWe followingwill define a solver that will take the matrix of coordinates, one point per row, then massage the argument to extract x,y
⍝ and inject 1, where needed, and return a pair (a, b) of resolved unknowns.
⍝ Applied twice, we nowwill have a, b and a', b' defining the two lines, we need to resolve it in x and y, in order to determine
⍝ their intersection
⍝ y = ax + b
Anonymous user