Example #1
0
 def test_UnivariateFunc2(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         'Exp(x)*Sqrt(x+y)')
     assert(ex==raw)
Example #2
0
 def test_UnivariateFunc5(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         'Tanh(x)')
     assert(ex==raw)
Example #3
0
 def test_Power3(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         'x**y')
     assert(ex==raw)
Example #4
0
 def test_Power5(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         '(1+x*y)**(y*2-1)')
     assert(ex==raw)
Example #5
0
 def test_Complicated1(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         '(1+x*y)**(y*2-1)+x/y/(1+2*x + y/3 + y**x)*(1+y*x)')
Example #6
0
 def test_Subtract(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), 'x-y')
     assert(ex==raw)
Example #7
0
 def test_Product3(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), '(x+y)*(2*x-7*y+1)')
     assert(ex==raw)
Example #8
0
 def test_UnivariateFunc12(self):
     (ex,raw) = compareEval(('x',), (0.5,),
         'Log(x)')
     assert(ex==raw)
Example #9
0
 def test_LC4(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), 'x+4*y-(2-5*x)')
     assert(ex==raw)
Example #10
0
 def test_Product2(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), 'x*2*y')
     assert(ex==raw)
Example #11
0
 def test_LC3(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), '5-3*x+2*y')
     assert(ex==raw)
Example #12
0
 def test_LC1(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), '3*x-2*y')
     assert(ex==raw)
Example #13
0
 def test_UnaryMinus(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), '-y')
     assert(ex==raw)
Example #14
0
 def test_UnivariateFunc9(self):
     (ex,raw) = compareEval(('x',), (1.5,),
         'ArcCosh(x)')
     assert(ex==raw)
Example #15
0
 def test_Product4(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         '(x+y)*(2*x-7*y+1)*(x-y)*(x*3-4*x)*(2+y)')
     assert(ex==raw)
Example #16
0
 def test_UnivariateFunc11(self):
     (ex,raw) = compareEval(('x',), (0.5,),
         'ArcTanh(x)')
     assert(ex==raw)
Example #17
0
 def test_Quotient4(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         '(x+1)/(2+y*x)')
     assert(ex==raw)
Example #18
0
 def test_ArcTan2(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         'ArcTan2(y,x)')
     assert(ex==raw)
Example #19
0
 def test_Quotient5(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         'x/y/y/x')
     assert(ex==raw)
Example #20
0
 def test_Complicated2(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4),
         '1/(1/x+1/y) - 2/(3/y+y*x**4)')
Example #21
0
 def test_Add(self):
     (ex,raw) = compareEval(('x','y'), (1.5,5.4), 'x+y')
     assert(ex==raw)