Python runs in your browser. Heavy or infinite loops may freeze your browser tab. Use "Stop" if needed; for heavy jobs, run locally.
Program 1
Using numpy linalg module
\(3x_1 + 2x_2 + 4x_3 = 7\)
\(2x_1 + x_2 + x_3 = 4\)
\(x_1 + 3x_2 + 5x_3 = 2\)
Output 1
Program 2
Using numpy linalg module
\[ 0x_1 + 7x_2 - 1x_3 + 3x_4 + 1x_5 = 5 \]
\[ 0x_1 + 3x_2 + 4x_3 + 1x_4 + 7x_5 = 7 \]
\[ 6x_1 + 2x_2 + 0x_3 + 2x_4 - 1x_5 = 2 \]
\[ 2x_1 + 1x_2 + 2x_3 + 0x_4 + 2x_5 = 3 \]
\[ 3x_1 + 4x_2 + 1x_3 - 2x_4 + 1x_5 = 4 \]
Output 2