Exemplo n.º 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);
 }
Exemplo n.º 2
0
Arquivo: GNFS.cs Projeto: 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);
        }