title: How to subtract symbolic value from list and get log value
body: <p>I have to subtract symbolic value from a list and get log value of that. This will return corresponding symbolic expressions as a list. That expression should be element vice operation.</p>
  
  <p>I have tried this using numpy and sympy in different ways. But without using loops, I couldn't find a solution. </p>
  
  <pre class="lang-py prettyprint-override"><code>import sympy as sp
  u = sp.symbols('u', real=False)
  a = [1, 2, 3, 5]
  answer = sp.log(u - a)
  </code></pre>
  
  <p>TypeError: unsupported operand type(s) for -: 'Symbol' and 'list'</p>