Issue #1406 has been fixed in tree meanwhile (probably thanks to
Mateusz) so lets just add a testcase for future.

Can be seen at:
https://code.plaes.org/git/sympy.git/commit/?id=b33806aa5e5e6cc14320dfe991f82cec2c70ad4b

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en
-~----------~----~----~----~------~----~------~--~---

>From b33806aa5e5e6cc14320dfe991f82cec2c70ad4b Mon Sep 17 00:00:00 2001
From: Priit Laes <pl...@plaes.org>
Date: Thu, 14 May 2009 18:28:59 +0300
Subject: [PATCH 2/2] Added test for issue #1406.

Signed-off-by: Priit Laes <pl...@plaes.org>
---
 sympy/solvers/tests/test_solvers.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sympy/solvers/tests/test_solvers.py b/sympy/solvers/tests/test_solvers.py
index 72a7cc7..1f081d4 100644
--- a/sympy/solvers/tests/test_solvers.py
+++ b/sympy/solvers/tests/test_solvers.py
@@ -246,8 +246,9 @@ def test_tsolve_1():
 
     assert solve(exp(x)+exp(-x)-y, x)== [-log(4) + log(2*y + 2*(-4 + y**2)**(Rational(1, 2))),
                                           -log(4) + log(2*y - 2*(-4 + y**2)**(Rational(1, 2)))]
-
+    # issue #1406
+    assert solve(z**x - y, x) == [log(y)/log(z)]
 
 def test_tsolve_2():
     x, y, a, b = symbols('xyab')
-    assert solve(y-a*x**b, x) == [y**(1/b)*(1/a)**(1/b)]
\ No newline at end of file
+    assert solve(y-a*x**b, x) == [y**(1/b)*(1/a)**(1/b)]
-- 
1.6.3

Reply via email to