title: Error:cannot determine truth value of Relational
body: <p>I am trying to solve integral using Python, I made the following code</p>
  <pre><code>from sympy import integrate
  import sympy as sy
  from scipy.integrate import quad
  import math
  k_2=Symbol('k_2')
  k_1=Symbol('k_1')
  t_d=Symbol('t_d')
  C_0=Symbol('C_0')
  y=Symbol('y')
  f=lambda y:((k_2+C_0*sy.exp(-y/t_d))/(k_2+C_0))**(k_1*t_d)
  print(quad(f,0,y))
  </code></pre>
  <p>But I got following error:</p>
  <blockquote>
  <p>cannot determine truth value of Relational</p>
  </blockquote>
  <p>It would be of great help who can help me with this error, thank you very much</p>