I am making a syntax error, some how my syntax is leading python to think I am writing +.log some where?
Please take a look at the code and let me know.
Can any one suggest, a function that can be used instead to solve this Algorithm
import numpy as np
import sympy as sp
answer = 0
x = sp.Symbol('x')
y = sp.Symbol('y')
W = sp.Symbol('W')
R = sp.Symbol('R')
a = sp.Symbol('a')
n = sp.Symbol('n')
m = sp.Symbol('m')
O = sp.Symbol('O')
'''
answer = sp.solve(((((-1* (np.log(1+(x/R))))/(np.log(1+((10**6)/R))))+1)*(Os/((np.log(np.exp(1)+(x/a)**n))**m)))-W,x)
'''
answer = sp.solve(((((-1* (sp.log(1+(x/R))))/(sp.log(1+((10**6)/R))))+1)*(O/((sp.log(np.exp(1)+(x/a)**n))**m)))-W,x)
print(answer)
Results: OLD
line 15, in <module>
answer = sp.solve(((((-1* (np.log(1+(x/R))))/(np.log(1+((10**6)/R))))+1)*(Os/((np.log(np.exp(1)+(x/a)**n))**m)))-W,x)
AttributeError: 'Add' object has no attribute 'log'
Process finished with exit code 1
Results: New
Continuum\Anaconda3\lib\site-packages\sympy\solvers\solvers.py", line 1414, in _solve
"\nNo algorithms are implemented to solve equation %s" % f)
NotImplementedError: multiple generators [log((x/a)**n + 54365636569181/20000000000000)**m, log(1 + x/R)]
No algorithms are implemented to solve equation O*(1 - log(1 + x/R)/log(1 + 1000000/R))*log((x/a)**n + 54365636569181/20000000000000)**(-m) - W
Process finished with exit code 1