Simultaneous Equation in 2 Unknowns

Program mode: COMP

Program syntax: ?→A: ?→B: ?→C: ?→D: ?→X: ?→Y: (BY-CX)÷(AX-BD◢ -B-1(C+A Ans     (47 bytes)

Program description: First, rewrite the equations in general form.

                                  

For example,

⎧2x + 3y + 4 = 0

⎨5x + 2y - 1 = 0

(Solution: x = 1, y = -2)

Then, start the program and input the coefficients of x, y and the constant terms for the first equation and do the same for the second one. For the above example, you should type [2][EXE][3][EXE][4][EXE][5][EXE][2][EXE][-1][EXE]. After that, the first output, which is the solution for x, will be shown. Then press [EXE] to see the second output, which is the solution for y. In the above case, the first output should be 1 and the second output should be -2.