EgtNumKernel 1.9h1 :
- Complex sostituiti con std::complex<double> - controllo versione chiave 19.
This commit is contained in:
+2
-2
@@ -171,7 +171,7 @@ void
|
||||
Polynomial::AdjustDegree( void)
|
||||
{
|
||||
// se il coefficiente del grado più alto è zero, diminuisco il grado
|
||||
while ( m_nDegree >= 0 && fabs( m_Coeff[m_nDegree]) < DBL_EPSILON) {
|
||||
while ( m_nDegree >= 0 && abs( m_Coeff[m_nDegree]) < DBL_EPSILON) {
|
||||
m_Coeff.pop_back() ;
|
||||
-- m_nDegree ;
|
||||
}
|
||||
@@ -206,7 +206,7 @@ FilterMultipleAndOutOfRangeRoots( DBLVECTOR& vRoots, double dMin, double dMax, d
|
||||
int nZ = (int) vRoots.size() ;
|
||||
for ( int i = 0 ; i < nZ ;) {
|
||||
if ( vRoots[i] < dMin || vRoots[i] > dMax ||
|
||||
( i >= 1 && fabs( vRoots[i]- vRoots[i-1]) < dEps)) {
|
||||
( i >= 1 && abs( vRoots[i]- vRoots[i-1]) < dEps)) {
|
||||
nZ -- ;
|
||||
for ( int j = i ; j < nZ ; ++ j)
|
||||
vRoots[j] = vRoots[j+1] ;
|
||||
|
||||
Reference in New Issue
Block a user