Skip to content

Instantly share code, notes, and snippets.

@gmisail
Created December 17, 2019 16:58
Show Gist options
  • Save gmisail/2a87c1f059b674495d4fe24b00fe45b0 to your computer and use it in GitHub Desktop.
Save gmisail/2a87c1f059b674495d4fe24b00fe45b0 to your computer and use it in GitHub Desktop.
Disp "V1: "
Input "X: ",A
Input "Y: ",B
Input "Z: ",C
Disp "V2: "
Input "X: ",D
Input "Y: ",E
Input "Z: ",F
Input "DOT (0) OR CROSS (1)? ",T
If T=0
Then
A*D→X
X+B*E→X
X+C*F→X
Disp "Result: ",X
Else
(B*F)-(C*E)→X
(C*D)-(A*F)→Y
(A*E)-(B*D)→Z
Disp "X ",X
Disp "Y ",Y
Disp "Z ",Z
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment