New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No solution is returned for `solve(exp(log(5)*x) - exp(log(2)*x), x)` #14791

Closed
sidhantnagpal opened this Issue Jun 11, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@sidhantnagpal
Copy link
Member

sidhantnagpal commented Jun 11, 2018

Transcendental Equation:

In [1]: solve(exp(log(5)*x) - 2**x, x)
Out[1]: [0]

In [2]: solve(exp(log(5)*x) - exp(log(2)*x), x)
Out[2]: []

Original Comment: PR #14712

@smichr

This comment has been minimized.

Copy link
Member

smichr commented Jun 12, 2018

>>> eq
-exp(x*log(2)) + exp(x*log(5))
>>> eq.simplify()
-exp(x*log(2)) + exp(x*log(5))
>>> eq.subs(x,var('y', real=True)).simplify()
-2**y + 5**y
>>> solve(eq.subs(x, y))
[0]
@sidhantnagpal

This comment has been minimized.

Copy link
Member

sidhantnagpal commented Jun 18, 2018

Fixed in #14712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment