2
2
function_symbol , I , E , pi , oo , zoo , nan , true , false ,
3
3
exp , gamma , have_mpfr , have_mpc , DenseMatrix , sin , cos , tan , cot ,
4
4
csc , sec , asin , acos , atan , acot , acsc , asec , sinh , cosh , tanh , coth ,
5
- asinh , acosh , atanh , acoth , Add , Mul , Pow , diff , GoldenRatio ,
5
+ asinh , acosh , atanh , acoth , atan2 , Add , Mul , Pow , diff , GoldenRatio ,
6
6
Catalan , EulerGamma , UnevaluatedExpr , RealDouble )
7
7
from symengine .lib .symengine_wrapper import (Subs , Derivative , RealMPFR ,
8
8
ComplexMPC , PyNumber , Function , LambertW , zeta , dirichlet_eta ,
@@ -171,6 +171,7 @@ def test_conv7():
171
171
assert acot (x / 3 ) == acot (sympy .Symbol ("x" ) / 3 )
172
172
assert acsc (x / 3 ) == acsc (sympy .Symbol ("x" ) / 3 )
173
173
assert asec (x / 3 ) == asec (sympy .Symbol ("x" ) / 3 )
174
+ assert atan2 (x / 3 , y ) == atan2 (sympy .Symbol ("x" ) / 3 , sympy .Symbol ("y" ))
174
175
175
176
assert sin (x / 3 )._sympy_ () == sympy .sin (sympy .Symbol ("x" ) / 3 )
176
177
assert sin (x / 3 )._sympy_ () != sympy .cos (sympy .Symbol ("x" ) / 3 )
@@ -185,6 +186,22 @@ def test_conv7():
185
186
assert acot (x / 3 )._sympy_ () == sympy .acot (sympy .Symbol ("x" ) / 3 )
186
187
assert acsc (x / 3 )._sympy_ () == sympy .acsc (sympy .Symbol ("x" ) / 3 )
187
188
assert asec (x / 3 )._sympy_ () == sympy .asec (sympy .Symbol ("x" ) / 3 )
189
+ assert atan2 (x / 3 , y )._sympy_ () == sympy .atan2 (sympy .Symbol ("x" ) / 3 , sympy .Symbol ("y" ))
190
+
191
+ assert sympy .sympify (sin (x / 3 )) == sympy .sin (sympy .Symbol ("x" ) / 3 )
192
+ assert sympy .sympify (sin (x / 3 )) != sympy .cos (sympy .Symbol ("x" ) / 3 )
193
+ assert sympy .sympify (cos (x / 3 )) == sympy .cos (sympy .Symbol ("x" ) / 3 )
194
+ assert sympy .sympify (tan (x / 3 )) == sympy .tan (sympy .Symbol ("x" ) / 3 )
195
+ assert sympy .sympify (cot (x / 3 )) == sympy .cot (sympy .Symbol ("x" ) / 3 )
196
+ assert sympy .sympify (csc (x / 3 )) == sympy .csc (sympy .Symbol ("x" ) / 3 )
197
+ assert sympy .sympify (sec (x / 3 )) == sympy .sec (sympy .Symbol ("x" ) / 3 )
198
+ assert sympy .sympify (asin (x / 3 )) == sympy .asin (sympy .Symbol ("x" ) / 3 )
199
+ assert sympy .sympify (acos (x / 3 )) == sympy .acos (sympy .Symbol ("x" ) / 3 )
200
+ assert sympy .sympify (atan (x / 3 )) == sympy .atan (sympy .Symbol ("x" ) / 3 )
201
+ assert sympy .sympify (acot (x / 3 )) == sympy .acot (sympy .Symbol ("x" ) / 3 )
202
+ assert sympy .sympify (acsc (x / 3 )) == sympy .acsc (sympy .Symbol ("x" ) / 3 )
203
+ assert sympy .sympify (asec (x / 3 )) == sympy .asec (sympy .Symbol ("x" ) / 3 )
204
+ assert sympy .sympify (atan2 (x / 3 , y )) == sympy .atan2 (sympy .Symbol ("x" ) / 3 , sympy .Symbol ("y" ))
188
205
189
206
190
207
@unittest .skipIf (not have_sympy , "SymPy not installed" )
@@ -204,6 +221,7 @@ def test_conv7b():
204
221
assert sympify (sympy .acot (x / 3 )) == acot (Symbol ("x" ) / 3 )
205
222
assert sympify (sympy .acsc (x / 3 )) == acsc (Symbol ("x" ) / 3 )
206
223
assert sympify (sympy .asec (x / 3 )) == asec (Symbol ("x" ) / 3 )
224
+ assert sympify (sympy .atan2 (x / 3 , y )) == atan2 (Symbol ("x" ) / 3 , Symbol ("y" ))
207
225
208
226
209
227
@unittest .skipIf (not have_sympy , "SymPy not installed" )
0 commit comments