public void GeneralizationForSum() { PolynomialDivision last = default; for (uint i = 2; i <= 5; ++i) { PolynomialDivision current = GetSum(i); if (last != default) { last.AssertIsEqualTo(current.Composition(Number.GreekTerm(i - 2), 0)); } last = current; } }
public void Composition_Division() { PolynomialDivision entry = _x / (_x + 1); entry.Composition(_x, _y / _x).AssertIsEqualTo(_y / (_x + _y)); }
public void Composition_Square() { PolynomialDivision entry = (_x + 1) / (_x - 1); entry.Composition((char)_x, _y + 1).AssertIsEqualTo((_y + 2) / _y); }