Example #1
0
 private void ConstructNewPolynomial(BigInteger polynomialBase, int polyDegree)
 {
     CurrentPolynomial = new Polynomial(N, polynomialBase, polyDegree);
     Polynomial.MakeCoefficientsSmaller(CurrentPolynomial, polynomialBase);
     PolynomialCollection.Add(CurrentPolynomial);
     Serialization.Save.All(this);
 }
Example #2
0
File: GNFS.cs Project: fengwd/GNFS
        private void ConstructNewPolynomial(BigInteger polynomialBase, int polyDegree)
        {
            CurrentPolynomial = new Polynomial(N, polynomialBase, polyDegree);

            /* Turns out, this may actually make the absolute value of the relation norms larger, *
            * which is no good because you are hoping many of them are going to be smooth.       */
            //Polynomial.MakeCoefficientsSmaller(CurrentPolynomial, polynomialBase);

            PolynomialCollection.Add(CurrentPolynomial);
            Serialization.Save.All(this);
        }