title: Solve an implicit equation Python
body: <p>I want to write a code to solve for &quot;y&quot; with relative error %1 in equation below:</p>
  <p><img src="https://i.stack.imgur.com/pvh5h.png" alt="enter image description here" /></p>
  <p>In the equation we have the values of &quot;<code>b=2,  x=1,  n=0.015,  S_0=0.002,  Q=21</code>&quot; and y should be calculated.</p>
  <p>I write this code:</p>
  <pre><code>b=float(input('b='))
  x=float(input('x= '))
  n=float(input('n= '))
  s=float(input('S_0= '))
  Q=float(input('Q= '))
  Q=(1/n)*((y*(b+x*y))**(5/3))/((b+2*y*(1+x**2)**(1/2))**(2/3)))*s
  print(y)
  </code></pre>
  <p>It doesn't work.</p>
  <p>I am not familiar how to solve the implicit equation in python. if it wasn't implicit I could write the equation with respect to y then write inputs. but here I don't know what I should do.</p>