EgtNumKernel 1.9h1 :

- Complex sostituiti con std::complex<double>
- controllo versione chiave 19.
This commit is contained in:
Dario Sassi
2018-08-08 10:59:56 +00:00
parent b3c1e76176
commit df74709c40
8 changed files with 98 additions and 464 deletions
+2 -2
View File
@@ -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] ;