title: How to use SymPy to find the point of intersection of two functions?
body: <p>I am trying to use the SymPy library to find the point of intersection(s) between two functions:</p>
  
  <p><code>f(x) = e ^ (x / 2)</code> and <code>g(x) = 3 - 3 * x</code></p>
  
  <p>I tried:</p>
  
  <pre><code>import sympy as syp
  
  x = syp.symbols('x')
  
  f_x = syp.E ** (x / 2)
  g_x = 3 - 3 * x
  
  print(syp.nsolve(f_x, g_x, x))
  </code></pre>
  
  <p><code>syp.nsolve(f_x, g_x, x)</code> spits out a <code>TypeError</code>. Replacing that line with <code>syp.solve([f_x, g_x], x)</code> results in an empty list <code>[]</code>. This is wrong because <code>f(x)</code> and <code>g(x)</code> intersect at exactly one point.</p>
  
  <p>How do I get the x and y values of the point of intersection(s) between any f(x) and g(x) using SymPy?</p>