title: solve_ivp Error: "missing 2 required positional arguments:"
body: <p>The function that I am using for solve_ivp is defined as:</p>
  
  <p><code>def ydot(t,y,kappa4,kappa16):</code></p>
  
  <p>Upon using solve_ivp as below:</p>
  
  <p><code>sol=solve_ivp(ydot,[0,10],initial_condition(),args=(50,100))</code></p>
  
  <p>I get the following error:</p>
  
  <p><code>ydot() missing 2 required positional arguments: 'kappa4' and 'kappa16'</code></p>
  
  <p>I am not able debug the code even though I have defined the function <code>ydot</code> the way scipy documentation for solve_ivp defines (<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html</a>)</p>
  
  <p>There's even an example in the end of the documentation that demonstrates the passing of arguments implemented in the same way as I have done.</p>
  
  <p>I believe the problem is somewhere in the two above pieces of the code I have provided from an otherwise long code. </p>