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