sympy icon indicating copy to clipboard operation
sympy copied to clipboard

make as_base_exp literal, like fraction

Open smichr opened this issue 6 months ago • 9 comments

as_base_exp no longer does any introspection, it just returns the literal arguments of the Pow, so the return values of S.Half**x and 1/2**x are no longer the same.

>>> [i.as_base_exp() for i in (S.Half**x, 1/2**x)]
[(1/2, x), (2, -x)]

Release Notes

  • core
    • as_base_exp output is now literally (self.base, self.exp)

smichr avatar Aug 03 '24 22:08 smichr