Skip to content

Commit

Permalink
#11649 Reverse order of terms in polynomial expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Aug 30, 2024
1 parent 11e3455 commit 7b58c57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ QString RiaRegressionTextTools::generateRegressionText( const regression::Polyno
bool isFirst = true;
std::vector<double> coeffs = reg.coeffisients();
QStringList parts;
for ( size_t i = 0; i < coeffs.size(); i++ )
for ( int i = static_cast<int>( coeffs.size() ) - 1; i >= 0; i-- )
{
double coeff = coeffs[i];
// Skip zero coeffs
Expand Down

0 comments on commit 7b58c57

Please sign in to comment.