title: How can I solve a Sympy equation with multiple equals?
body: <p><em>x1/A = x2/B = x3/C = x4/D = Constant</em> :
  Is the type of equation I want to solve automatically.</p>
  <pre class="lang-py prettyprint-override"><code>from sympy import symbols, Eq, solve
  
  def _3covoit_prop(CostList): # Costs : [A,B,C,D]
      n = len(CostList)
      varbs = symbols('x(:'+str(n)+')') #(x0, x1, x2, x3)
      eqs = [ (x/cout) for x,cout in zip(varbs,CostList) ]
      maxLC = max(CostList)
      E = Eq(eqs[0],maxLC)
      for e in eqs[0:] :
          E = Eq(e,E,evaluate=False) #equal imbrication here
      s=solve(E, varbs)
  
  _3covoit_prop([100.,450.,500.,1450.])
  </code></pre>
  <p>Gives a very strange answer. If anyone has an idea to help, it would be welcomed.</p>