Better detection of zero-equivalence in calculate_series()
Merge pull request #2851 from skirpichev/calculate_series-fix

Better detection of zero-equivalence in calculate_series()