Cramer's Rule (3x3)
This program is prepared to calculate the equation with 3 unknowns automatically with the cramer method.
Equations
Our matrix
A | Equations | Result |
---|---|---|
x | ||
y | ||
z |
Remember Formule
x = [x] / [A]
y = [y] / [A]
z = [z] / [A]
Calculate detA [A]
Found X
X Matris |
---|
detX = [x]
x =
Found Y
Y Matrix |
---|
detY = [y]
y =
Found Z
Z Matrix |
---|
detZ = [z]
z =
For Matlab
A=
detA = det(A)
x =
detx = det(x)
xResult = detx/detA
y =
dety = det(y)
yResult = dety/detA
z =
detz = det(z)
zResult = detz/detA
ozgur_result_x_y_z = [xResult,yResult,zResult]
MATLAB You can try the code here. https://octave-online.net/