From: Antonio Jimenez Pastor Date: Tue, 19 Jun 2018 09:53:29 +0000 (+0200) Subject: Fixed error in method random_element in class DDRing X-Git-Url: http://git.risc.jku.at/gitweb/?a=commitdiff_plain;h=b7106dcd766f06fccf2bf2d8a8c111085d5e8573;p=ajpastor%2Fdiff_defined_functions.git Fixed error in method random_element in class DDRing --- diff --git a/ajpastor/dd_functions/ddFunction.py b/ajpastor/dd_functions/ddFunction.py index d22988c..8d6ad8e 100644 --- a/ajpastor/dd_functions/ddFunction.py +++ b/ajpastor/dd_functions/ddFunction.py @@ -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): diff --git a/releases/diff_defined_functions__0.5.zip b/releases/diff_defined_functions__0.5.zip index e734dc6..76a49e2 100644 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 index 0000000..76a49e2 Binary files /dev/null and b/releases/old/diff_defined_functions__0.5__18.06.19_11:53:29.zip differ