; Combine 3 linear equations in 3 unknowns (x, y, z)
; and solve for every variable to test Mathomatic.

clear all
b1=a0*x+a1*y+a2*z
b2=a3*x+a4*y+a5*z
b3=a6*x+a7*y+a8*z
2
eliminate x using 1
3
eliminate x y
z
z = ((((a0*a4)-(a1*a3))*b3)+(a6*((-1.0*a4*b1)+(a1*b2)))+(a7*((a3*b1)-(a0*b2))))/((a6*((-1.0*a4*a2)+(a1*a5)))+(a8*((a0*a4)-(a1*a3)))+(a7*((a3*a2)-(a0*a5))))
compare 3 with 4
3
b1
b2
b3
a0
a1
a2
a3
a4
a5
a6
a7
a8
z
compare 3 with 4
