Example #1
0
 public static IPolynomial FromRoots(params BigInteger[] roots)
 {
     return(Polynomial.Product(
                roots.Select(
                    zero => new Polynomial(
                        new Term[]
     {
         new Term(1, 1),
         new Term(BigInteger.Negate(zero), 0)
     }
                        )
                    )
                ));
 }