Power expression in denominator?

46 views
Skip to first unread message

Boris Kheyfets

unread,
Sep 10, 2013, 6:59:45 AM9/10/13
to sy...@googlegroups.com

Ho do I cancel expression in a denominator:

                   2/3
               -8⋅2
─────────────────────────────────────
                                  7/4
  3 ___         22/3 ⎛     1     ⎞
3⋅╲╱ ν ⋅(yᵢ - 1)    ⋅⎜───────────⎟
                     ⎜        8/3⎟
                     ⎝(yᵢ - 1)   ⎠

Expression:

-8*2**(2/3)/(3*nu**(1/3)*(y_i - 1)**(22/3)*((y_i - 1)**(-8/3))**(7/4))

Aaron Meurer

unread,
Sep 16, 2013, 7:12:46 PM9/16/13
to sy...@googlegroups.com
The issue is that you have a nested power. x**a**b != x**(a*b) in
general (see http://docs.sympy.org/latest/tutorial/simplification.html#powers),
so SymPy doesn't simplify this automatically.

The solution should be to use powdenest, but it seems that
powdenest(force=True) is not working for me. So this is a bug. I
opened https://code.google.com/p/sympy/issues/detail?id=4022 for it.

Aaron Meurer
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

Boris Kheyfets

unread,
Sep 17, 2013, 4:28:04 AM9/17/13
to sy...@googlegroups.com
Thanks.


You received this message because you are subscribed to a topic in the Google Groups "sympy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sympy/ibBh-i6DevE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sympy+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages