I am solving 3 linear algebraic equations using MATLAB. I know the expected solutions, one of which should be 0
but it's showing 2.2204e-16
.
MATLAB Code:
a=[2 5 -3; 9 2 3; 7 -12 5]
b=[-11; 0; 8]
x=inv(a)*b
The expected solution is -1, 0, 3
, but it shows:
-1.0000e+00
2.2204e-16
3.0000e+00
Technically, I didn't use the MATLAB software for this, but rather used this online Octave interpreter.
I expect exactly 0 as the output, not 2.2204e-16
. How should I approach this?