mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Avoid display of first degree of x
This commit is contained in:
parent
116f1b1713
commit
56501f7f6d
@ -409,6 +409,10 @@ QString RimSummaryRegressionAnalysisCurve::generateRegressionText( const regress
|
|||||||
{
|
{
|
||||||
parts.append( QString( "%1" ).arg( formatDouble( std::fabs( coeff ) ) ) );
|
parts.append( QString( "%1" ).arg( formatDouble( std::fabs( coeff ) ) ) );
|
||||||
}
|
}
|
||||||
|
else if ( i == 1 )
|
||||||
|
{
|
||||||
|
parts.append( QString( "%1x" ).arg( formatDouble( std::fabs( coeff ) ) ) );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
parts.append( QString( " %1x<sup>%2</sup>" ).arg( formatDouble( std::fabs( coeff ) ) ).arg( i ) );
|
parts.append( QString( " %1x<sup>%2</sup>" ).arg( formatDouble( std::fabs( coeff ) ) ).arg( i ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user