Python, Math, Data Science, Python Programming.
k1*S*(Rt-Rp)/(km1+Rt-Rp) - k2*Rp/(km2+Rp) from scipy.optimize import fsolve store = [] for S in S_all: Rp_ss = fsolve(equation,[1],args=(S,))[0] store.append(Rp_ss) We first set the range of signal S from 0–3, then we use fsolvefunction from scipy.optimizeto do the job. The result basically will be