I have an expression like this one: 4^k/(12^k*A+4^k*B)
Python code is:
import sympy as sy
k,A,B=sy.symbols('k A B',real=True)
C=sy.Rational(4)**k/(sy.Rational(12)**k*A+sy.Rational(4)**k*B)
Is there any SymPy function able to simplify the expression? Something like radcan in MAXIMA. I tried sy.simplify(C), sy.factor(C), sy.powsimp(C), sy.radsimp(C), sy.expand(C) without success.