Avoid display of first degree of x

This commit is contained in:
Magne Sjaastad 2023-06-16 15:43:49 +02:00 committed by Kristian Bendiksen
parent 116f1b1713
commit 56501f7f6d

View File

@ -409,6 +409,10 @@ QString RimSummaryRegressionAnalysisCurve::generateRegressionText( const regress
{
parts.append( QString( "%1" ).arg( formatDouble( std::fabs( coeff ) ) ) );
}
else if ( i == 1 )
{
parts.append( QString( "%1x" ).arg( formatDouble( std::fabs( coeff ) ) ) );
}
else
{
parts.append( QString( " %1x<sup>%2</sup>" ).arg( formatDouble( std::fabs( coeff ) ) ).arg( i ) );