std::cout <<
"Matrix size: ";
24std::cout << std::endl <<
"Enter value of the matrix: "<< std::endl;
33 for(step = 0; step <
mat_size- 1; step++) {
34 for(i = step; i <
mat_size- 1; i++) {
35 doublea = (mat[i + 1][step] / mat[step][step]);
38mat[i + 1][j] = mat[i + 1][j] - (a * mat[step][j]);
42std::cout << std::endl
43<<
"Matrix using Gaussian Elimination method: "<< std::endl;
47std::cout << mat[i][j] <<
" ";
49std::cout << std::endl;
51std::cout << std::endl
52<<
"Value of the Gaussian Elimination method: "<< std::endl;
53 for(i =
mat_size- 1; i >= 0; i--) {
56x[i][j] = x[j][j] * x[i][j];
62x[i][i] = (x[i][
mat_size] - sum) / (x[i][i]);
64std::cout <<
"x"<< i <<
"= "<< x[i][i] << std::endl;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4