Example #1
0
 //
 public RationalGenerator(IHarmonicity harmonicity, Limits limits, Rational[] customBasis = null)
 {
     _harmonicity = harmonicity;
     _limits      = limits;
     if (customBasis != null)
     {
         _customBasis = new Pow[customBasis.Length][];
         for (int i = 0; i < customBasis.Length; ++i)
         {
             _customBasis[i] = Powers.Clone(customBasis[i].GetPrimePowers());
         }
     }
 }
Example #2
0
 public Rational Clone()
 {
     return(new Rational(Powers.Clone(pows)));
 }
Example #3
0
 public Rational(Rational r)
 {
     this.pows = Powers.Clone(r.pows);
 }