Find the intersection of two lines: Difference between revisions
Content deleted Content added
Line 246: | Line 246: | ||
⍝ APL has a powerful operator the « dyadic domino » to solve a system of N linear equations with N unknowns |
⍝ APL has a powerful operator the « dyadic domino » to solve a system of N linear equations with N unknowns |
||
⍝ We use it first to solve the a and b, defining the 2 lines as y = ax + b, with the x and y of the given points |
⍝ We use it first to solve the a and b, defining the 2 lines as y = ax + b, with the x and y of the given points |
||
⍝ |
⍝ The system of equations for first line will be: |
||
⍝ 0 = 4a + b |
⍝ 0 = 4a + b |
||
⍝ 10 = 6a + b |
⍝ 10 = 6a + b |