From 09bbb04ab280d9580bf6a850b679cbe6c03625ef Mon Sep 17 00:00:00 2001 From: Lafrite Date: Fri, 28 Feb 2014 09:45:19 +0100 Subject: [PATCH] remove expressions with letters --- pymath/random_expression.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pymath/random_expression.py b/pymath/random_expression.py index d11212c..35cd268 100644 --- a/pymath/random_expression.py +++ b/pymath/random_expression.py @@ -136,18 +136,11 @@ if __name__ == '__main__': #desc_rdExp(rdExp1) #rdExp2 = RdExpression(form) #desc_rdExp(rdExp2) - #form = "{a+a/10}x + {a} + 2*{b}" + #form = "{a+a/10}*4 + {a} + 2*{b}" #cond = ["{a} + {b} in [1, 2, 3, 4, 5]", "{a} not in [0,1]", "{b} not in [0,1]"] #rdExp3 = RdExpression(form) #desc_rdExp(rdExp3) - form1 = "{a**2}x^2 + {2*a*b}x + {b**2}" - cond1 = [] - rdExp1 = RdExpression(form1, cond1, with_Exp = False) - desc_rdExp(rdExp1) - rdExp1 = RdExpression(form1, cond1) - desc_rdExp(rdExp1) -