Skip to content

Commit

Permalink
50 : add a_0 and a_1 to exact 1 ODE plotters
Browse files Browse the repository at this point in the history
  • Loading branch information
beachdweller committed May 29, 2024
1 parent 3224137 commit 454d4a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 50_ode/10_Forward_Euler.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@
"py.plot(t_out_01, x_out_01, '.-', label='$\\Delta t=0.1$')\n",
"\n",
"# plot exact solution\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes)\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes, a_0=a_0, a_1=a_1)\n",
"exact.plot()\n",
"py.grid(True)\n",
"py.xlabel('t(sec)')\n",
Expand Down
4 changes: 2 additions & 2 deletions 50_ode/20_Heun_Method.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
"py.plot(t_heun__out, x_heun__out, '*-', label='Heun $\\Delta t$ = 0.5')\n",
"\n",
"# Exact solution\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes)\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes, a_0=a_0, a_1=a_1)\n",
"exact.plot()\n",
"\n",
"# Aspect ratio\n",
Expand Down Expand Up @@ -472,7 +472,7 @@
"py.plot(t_heun__out, x_heun__out, '*-', label='Heun')\n",
"\n",
"# plot exact solution\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes)\n",
"exact = ode_plot.ExactPlotterFirstOrderODE(t_slopes, a_0=a_0, a_1=a_1)\n",
"exact.plot()\n",
"py.grid(True)\n",
"py.xlabel('t(sec)')\n",
Expand Down

0 comments on commit 454d4a3

Please sign in to comment.