Sympy exponential equation

40 views
Skip to first unread message

Paul Royik

unread,
Jun 5, 2015, 11:56:53 AM6/5/15
to sy...@googlegroups.com
Hello.

Why solve(-(21/20)**(12*x) + 120, x) gives empty set?

Aaron Meurer

unread,
Jun 5, 2015, 4:48:15 PM6/5/15
to sy...@googlegroups.com
I guess it's just not implemented. I think the solution should be
log(120)/log(S(21)/20)/12. This is related to this issue
https://github.com/sympy/sympy/issues/2999.

Aaron Meurer

On Fri, Jun 5, 2015 at 10:56 AM, Paul Royik <distan...@gmail.com> wrote:
> Hello.
>
> Why solve(-(21/20)**(12*x) + 120, x) gives empty set?
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/f21f4f8b-aecd-48d1-a738-6bb23ef1058b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Paul Royik

unread,
Jun 5, 2015, 4:52:04 PM6/5/15
to sy...@googlegroups.com
OK.
Thank you.

I just wondered because in sage it is not implemented as well.

Aaron Meurer

unread,
Jun 5, 2015, 4:52:11 PM6/5/15
to sy...@googlegroups.com
Ah, it looks like, as with that issue, you can get solve to give you
an answer if you pass check=False:

In [21]: print(solve(-(S(21)/20)**(12*x) + 120, x, check=False))
[-log(120**(1/(-log(7355827511386641) + log(4096000000000000))))]

which looks like the same answer after some log identities are applied
(those large numbers are 21**12 and 20**12, respectively).

Aaron Meurer

Paul Royik

unread,
Jun 6, 2015, 8:15:10 AM6/6/15
to sy...@googlegroups.com
Thank you.
Reply all
Reply to author
Forward
0 new messages