title: How to create the equivalent of WolframAlpha symbolic solution to equation in Python?
body: <p>I have found WolframAlpha very useful in generating a solution range for each of my variables for the equation:</p>
  <pre><code>200a + 1400b + 100c = 100000 
  </code></pre>
  <p>where</p>
  <pre><code>0 &lt;= a &lt; 50
  50 &lt;= b &lt; 150
  150 &lt;= c &lt; 300
  </code></pre>
  <p>What I am after is something like the results in the 2nd line of the 'Solutions' box <a href="https://www.wolframalpha.com/input/?i=200*a%2B1400*b%2B100*c+%3D+100000%2C+0%3C%3Da%3C50%2C+50%3C%3Db%3C150%2C+150%3C%3Dc%3C300" rel="nofollow noreferrer">here</a>:</p>
  <p><a href="https://i.stack.imgur.com/ObMD5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ObMD5.png" alt="WolframAlpha screenshot" /></a></p>
  <p>How can I reproduce this in Python without the use of WolframAlpha? I am thinking perhaps using Sympy, but I am not familiar with this (I made a start below, but don't think it is on the right track). Any advice would be appreciated.</p>
  <pre><code>from sympy.solvers import solve
  from sympy import Symbol
  a = Symbol('a')
  b = Symbol('b')
  c = Symbol('c')
  solve([a &gt;= 0, a &lt; 50, b &gt;= 50, b &lt; 150, c &gt;= 150, c &lt; 300, 100*a + 1400*b + 100*c - 100000], a)
  </code></pre>