Calc Equation of Straight Line (Pt. Slope 2 Pt. Form) 41 bytes - spc-computer-society/spc-cs-db GitHub Wiki
?→A:?→B:?→M:B-MA→Y:
?→Y:AM-:M-1(Y-B→M◢B-MA→Y
Pt. slope form : input pt then slope. You find Y-intercept on the right corner. Its stored in variable Y.
2 Pt. Form : input 2 pt in the sequence of (x,y). Output slope and Y - intercept.
Slope stored in M
Y - intercept stored in variable Y.