Anonymous user
Find the intersection of two lines: Difference between revisions
Find the intersection of two lines (view source)
Revision as of 09:27, 19 December 2020
, 3 years ago→{{header|APL}}
m (→{{header|APL}}) |
m (→{{header|APL}}) |
||
Line 260:
⍝ y = a'x + b'
⍝ In order to reuse the same solver, we need to format a little bit the arguments, and change the sign of a and a', therefore
⍝ multiply (a,b) and (a', b') by (-1, 1):
⍝ b = -ax + y
⍝ b' = -a'x + y
|