using Gauss Jacobi method to solve a system of equations
I’m new to Matlab so don’t have the best understanding here, i need to use the jacobi method to find the values of C but i dont really know the code that i need to use.
My equations are:
(837*C3)/2000 – (6851*C2)/10000 – (1091*C1)/2500 – (821*C4)/2000
(1337*C1)/2000 + (437*C2)/2500 + (3899*C3)/10000 – (6087*C4)/10000
(1601*C2)/2500 – (2939*C1)/5000 – (477*C3)/10000 – (4921*C4)/10000
(1313*C1)/10000 – (3*C2)/10 – (8209*C3)/10000 – (292*C4)/625
A = [-0.4364 -0.6851 0.4185 -0.4105; 0.6685 0.1748 0.3899 -0.6087; -0.5878 0.6404 -0.0477 -0.4921; 0.1313 -0.3000 -0.8209 -0.4672];
B = [0;40;0;0];
please note that this is not diaganally dominant but ive been told to do it anyway – it is part of an assignment.
cheers.I’m new to Matlab so don’t have the best understanding here, i need to use the jacobi method to find the values of C but i dont really know the code that i need to use.
My equations are:
(837*C3)/2000 – (6851*C2)/10000 – (1091*C1)/2500 – (821*C4)/2000
(1337*C1)/2000 + (437*C2)/2500 + (3899*C3)/10000 – (6087*C4)/10000
(1601*C2)/2500 – (2939*C1)/5000 – (477*C3)/10000 – (4921*C4)/10000
(1313*C1)/10000 – (3*C2)/10 – (8209*C3)/10000 – (292*C4)/625
A = [-0.4364 -0.6851 0.4185 -0.4105; 0.6685 0.1748 0.3899 -0.6087; -0.5878 0.6404 -0.0477 -0.4921; 0.1313 -0.3000 -0.8209 -0.4672];
B = [0;40;0;0];
please note that this is not diaganally dominant but ive been told to do it anyway – it is part of an assignment.
cheers. I’m new to Matlab so don’t have the best understanding here, i need to use the jacobi method to find the values of C but i dont really know the code that i need to use.
My equations are:
(837*C3)/2000 – (6851*C2)/10000 – (1091*C1)/2500 – (821*C4)/2000
(1337*C1)/2000 + (437*C2)/2500 + (3899*C3)/10000 – (6087*C4)/10000
(1601*C2)/2500 – (2939*C1)/5000 – (477*C3)/10000 – (4921*C4)/10000
(1313*C1)/10000 – (3*C2)/10 – (8209*C3)/10000 – (292*C4)/625
A = [-0.4364 -0.6851 0.4185 -0.4105; 0.6685 0.1748 0.3899 -0.6087; -0.5878 0.6404 -0.0477 -0.4921; 0.1313 -0.3000 -0.8209 -0.4672];
B = [0;40;0;0];
please note that this is not diaganally dominant but ive been told to do it anyway – it is part of an assignment.
cheers. matlab, gauss jacobi MATLAB Answers — New Questions