Quantcast
Channel: Gaussian elimination algorithm in C++ - Code Review Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Gaussian 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>