1 from sympy
import sin
, exp
, Symbol
, I
, cot
8 assert not cot(x
).has(sin
)
10 assert sin(x
).has(sin
)
11 assert not sin(x
).has(cot
)
13 def test_sin_exp_rewrite():
14 assert sin(x
).rewrite(sin
, exp
) == -I
/2*(exp(I
*x
)-exp(-I
*x
))