Hi all. I have a few expressions made up of Symbols to Float and Integer powers. Here's an example:
>>> from sympy.abc import a >>> b = (a**2)**0.5 >>> type(b.args[1]) <class 'sympy.core.numbers.Float'> >>> type(b.args[0].args[1]) <class 'sympy.core.numbers.Integer'> I want to combine the powers so that this would be a**1. Is this possible? I have tried playing with powsimp and browsing its source, but no luck so far. It seems to work fine when the powers are all Rational and Float, but not with Integer objects. >>> powsimp(b, deep=True, force=True, combine="base") (a**2)**0.5 Best, Casey -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
