Solving complicated logarithmic equation symbolically

167 Views Asked by At

For a research application, I am trying to solve this system for the variable $c$. I have tried WolframAlpha and Sympy to no avail, so I was wondering if there was a program or tool that would be able to solve this. Maybe a Taylor expansion is the best approach?

\begin{equation*} \frac{m + d(-ln(1 - a^{3}(c+f)))}{q + r(-ln(1 - a^{3}(c+f)))} - c = 0 \end{equation*}

The Sympy code I tried was

import sympy as sym

m,d,a,c,f,q,r = sym.symbols('m d a c f q r')
RHS = c
LHS = (m+d*(-sym.log(1-a**3*(c+f)))) / (q+r*(-sym.log(1-a**3*(c+f))))
result_of_it = sym.solve(LHS-RHS, c)
print(result_of_it)