Change First Lambda Function Definition
"\n",
"For `neurodiffeq.ode.solve` to solve this ODE, the following parameters needs to be specified:\n",
"\n",
- "* `ode`: a function representing the ODE to be solved. It should be a function that maps $(u, t)$ to $F(u, t)$. Here we are solving $$F(u, t)=\\dfrac{du}{dt} + u=0,$$ then `ode` should be `lambda u, t: diff(u, t) - u`, where `diff(u, t)` is the first order derivative of `u` with respect to `t`.\n",
+ "* `ode`: a function representing the ODE to be solved. It should be a function that maps $(u, t)$ to $F(u, t)$. Here we are solving $$F(u, t)=\\dfrac{du}{dt} + u=0,$$ then `ode` should be `lambda u, t: diff(u, t) + u`, where `diff(u, t)` is the first order derivative of `u` with respect to `t`.\n",
"\n",
"* `condition`: a `neurodiffeq.conditions.BaseCondition` instance representing the initial condition / boundary condition of the ODE. Here we use `neurodiffeq.conditions.IVP(t_0=0.0, u_0=1.0)` to ensure $u(0) = 1.0$.\n",
"\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.3"
+ "version": "3.7.4"
}
},
"nbformat": 4,
