I have the following python code:
ymin = 1615.72687
ymax = -1607.73011
ec50 = 2.19835099
x,y = symbols('x y')
expression = ((y-ymin)*(ec50+x))+abs(ymax)*x
equation = solve(expression,x)
And it spits out the following equation: [0.5495877475*(-100000.0*y + 161572687.0)/(25000.0*y - 199919.0)]
solve sets expression equal to $0$ and solves for x. When I tried to do this by hand, I received the following answer: $$x = \frac{(y)(ec50) - (ymin)(ec50)}{\mid{ymax}\mid - y -ymin}$$
Hence, I don't see how that equation translates to what was outputted by Python. Also, my assumption for Python multiplying y by $100000.0$ is to compensate for the shift in the other variables. But even taking that into consideration doesn't help me understand the discrepancy between the two equations.