remove expressions with letters

This commit is contained in:
Lafrite 2014-02-28 09:45:19 +01:00
parent ab83751e57
commit 09bbb04ab2

View File

@ -136,18 +136,11 @@ if __name__ == '__main__':
#desc_rdExp(rdExp1) #desc_rdExp(rdExp1)
#rdExp2 = RdExpression(form) #rdExp2 = RdExpression(form)
#desc_rdExp(rdExp2) #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]"] #cond = ["{a} + {b} in [1, 2, 3, 4, 5]", "{a} not in [0,1]", "{b} not in [0,1]"]
#rdExp3 = RdExpression(form) #rdExp3 = RdExpression(form)
#desc_rdExp(rdExp3) #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)