public static FactorsBase Create(FactorBase f) { if (f == null || f is FactorOne) { return(new FactorsOne()); } if (f == null || f is FactorZero) { return(new FactorsZero()); } return(new FactorsSingle(f)); }
public override bool Equals(FactorBase other) => Equals(other as FactorPowN);
private FactorsSingle(FactorBase f) { _f = f; }