Answer by G. Sliepen for Gaussian elimination algorithm in C++
Adding to pacmaninbw's answer:Naming thingsmatrix2 is not a matrix, it's a vector. I would just call it a vector to avoid any confusion. Of course, since you used using namespace std, you can't name a...
View ArticleAnswer by pacmaninbw for Gaussian elimination algorithm in C++
Don't Mix C Language I/O with C++ I/OThe code is using both printf() statements combined with std::cout, this is generally a bad idea. C++ does allow for formatted output.Prefer "\n" Over std::endlFor...
View ArticleGaussian elimination algorithm in C++
Given:j-g-h-i=0a+b-c-j=0c+i-d-e=0e+g-f=0And known:a=10b=7d=3e=2f=3j=14I want to solve this (or similar equations) with the Gaussian elimination algorithm, and wrote the following C++ code:#include...
View Article
More Pages to Explore .....