Fixed error in method random_element in class DDRing
authorAntonio Jimenez Pastor <antonio@ebook.dk-compmath.jku.at>
Tue, 19 Jun 2018 09:53:29 +0000 (11:53 +0200)
committerAntonio Jimenez Pastor <antonio@ebook.dk-compmath.jku.at>
Tue, 19 Jun 2018 09:53:29 +0000 (11:53 +0200)
ajpastor/dd_functions/ddFunction.py
releases/diff_defined_functions__0.5.zip
releases/old/diff_defined_functions__0.5__18.06.19_11:53:29.zip [new file with mode: 0644]

index d22988c..8d6ad8e 100644 (file)
@@ -554,7 +554,8 @@ class DDRing (Ring_w_Sequence, IntegralDomain):
 
         ## Computing the list of coefficients
        R = self.base(); S = self.base_field;
-        coeffs = [R.random_element() for i in range(randint(min_order,max_order))];
+        coeffs = [R.random_element() for i in range(randint(min_order,max_order)+1)];
+       print coeffs;
        
        init_values = [0];
        while(init_values[0] == 0):
index e734dc6..76a49e2 100644 (file)
Binary files a/releases/diff_defined_functions__0.5.zip and b/releases/diff_defined_functions__0.5.zip differ
diff --git a/releases/old/diff_defined_functions__0.5__18.06.19_11:53:29.zip b/releases/old/diff_defined_functions__0.5__18.06.19_11:53:29.zip
new file mode 100644 (file)
index 0000000..76a49e2
Binary files /dev/null and b/releases/old/diff_defined_functions__0.5__18.06.19_11:53:29.zip differ