Compare commits

...
Author SHA1 Message Date
Christopher Smith 466db99962 Merge pull request #16425 from sympy/smichr-patch-3
Update test_simplify.py
2019-03-24 10:20:00 -05:00
Christopher Smith 38153f0953 Merge branch 'smichr-patch-1' into smichr-patch-3 2019-03-24 10:19:51 -05:00
Christopher Smith fefc967055 Merge pull request #16421 from sympy/smichr-patch-2
Update test_solvers.py
2019-03-24 10:18:51 -05:00
Christopher Smith a02e378eaf Update test_simplify.py 2019-03-24 10:16:32 -05:00
Christopher Smith 088e6b514c Update test_solvers.py 2019-03-24 10:07:26 -05:00
Christopher Smith 9d3a246c63 Update test_simplify.py 2019-03-24 09:13:27 -05:00
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -434,6 +434,15 @@ def test_logcombine_1():
a = Symbol("a")
z, w = symbols("z,w", positive=True)
b = Symbol("b", real=True)
# a single unknown can combine
assert logcombine(log(x) + log(2)) == log(2*x)
eq = log(abs(x)) + log(abs(y))
assert logcombine(eq) == eq
reps = {x: 0, y: 0}
assert log(abs(x)*abs(y)).subs(reps) != eq.subs(reps)
assert logcombine(log(x) + 2*log(y)) == log(x) + 2*log(y)
assert logcombine(log(x) + 2*log(y), force=True) == log(x*y**2)
assert logcombine(a*log(w) + log(z)) == a*log(w) + log(z)
+2 -2
View File
@@ -705,8 +705,8 @@ def test_issue_4671_4463_4467():
#assert solve((2**exp(y**2/x) + 2)/(x**2 + 15), y) == [-sqrt(x*log(1 + I*pi/log(2)))
# , sqrt(x*log(1 + I*pi/log(2)))]
assert solve((2**exp(y**2/x) + 2)/(x**2 + 15), y) == [
sqrt(x*(-log(log(2)) + log(log(2) + I*pi))),
-sqrt(-x*(log(log(2)) - log(log(2) + I*pi)))]
sqrt(x*(log((log(2) + I*pi)/log(2)))),
-sqrt(-x*(log((log(2) + I*pi)/log(2))))]
C1, C2 = symbols('C1 C2')
f = Function('f')