title: TypeError: model() missing 2 required positional arguments
body: <p>I have these three ODE to solve. Here's the code I'm using.</p>
  
  <p>When I compile, I get the following error message:</p>
  
  <p>TypeError: model() missing 2 required positional arguments: 'T' and 't'</p>
  
  <p>I don't know what is happening since T and t are mentioned in the model function.</p>
  
  <p>Can anybody help me with this?</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  from scipy.integrate import odeint
  import matplotlib.pyplot as plt
  
  
  v0 = 10.0 #L/min, vazão volumétrica de entrada (CSTR)
  V = 100.0 #L, volume do reator (CSTR)
  k = 0.14*10**(-5) #L/mol.min, constante de velocidade da reação (aprox: independente da temperatura)
  Na0 = 500.0 #mol, concentração de A na entrada do reator (CSTR)
  DeltaH_r = -5.9*10**(-5) #cal/mol
  CpA = 40.0 #cal/mol.K
  CpB = 18.0 #cal/mol.K
  Tent = 50.0+273.15 #K, temperatura na entrada no reator
  
  def model(Na, Nb, T, t):
      dNadt = (Na0 / V) * v0 - (Na / V) * v0 + (- k * (Na / V)**2) * V
      dNbdt = -(Nb / V) * v0 + 0.5 * (k * (Na / V)**2) * V
      dTempdt = ((-DeltaH_r) * (- k * (Na / V) * V) - Cp_A * V * v0 * (T - Tent)) / (Na * CpA + Nb *CpB)
      return [dNadt, dNbdt, dTempdt]
  
  
  t = np.linspace(0,20)
  
  Chutes = [500.0, 0.1, 300.0] #Chute inicial
  
  
  Y = odeint(model, Chutes, t)
  </code></pre>