[SciPy-User] Passing keyword argment to functions in odeint

Juan Luis Cano juanlu001 at gmail.com
Wed Jun 26 06:47:22 EDT 2013


On 06/26/2013 05:19 AM, Daniel Penalva wrote:
> Is it possible to pass keyword arguments to functions like
>
> func(x, t, K = False),
>
> while using odeint to integrate ?
>
> i have tried usual way  odeint(func, x, t, (K) ), but it did not work.

Probably because you have to pass them as a tuple

(K,)

Juanlu



More information about the SciPy-User mailing list