There is still limited support for this, but you can use refine(expr,
Q.positive(x - 2)). Actually, if all you want to do is simplify all
roots in an expression you can use powdenest() and powsimp() with the
force=True flag.

Aaron Meurer

On Fri, Jan 17, 2020 at 12:26 PM Paul Royik <[email protected]> wrote:
>
> I know that variables can be made positive or negative.
>
> But how do I make assumption that x>2?
>
> If I have and expression like (x-2)^(1/3)+(x-5)^(1/3) (actually arbitrary 
> expressions), how to make assumptions that all expressions under roots are 
> positive, i.e. x-2>0, x-5>0?
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/9edf1f7c-224d-4bf2-ba17-eea773465bb2%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6K3keFtM%2BGjbMQd2e2-7pqM4Gv1X-oTht-TbZkNMvEH7g%40mail.gmail.com.

Reply via email to