Example #1
0
 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));
 }
Example #2
0
 public override bool Equals(FactorBase other) => Equals(other as FactorPowN);
Example #3
0
 private FactorsSingle(FactorBase f)
 {
     _f = f;
 }