Commit d29ca9cd by Éamonn Murray

### Fix some typos

parent f455fb06
 ... ... @@ -639,8 +639,8 @@ " \n", " Returns\n", " -------\n", " x, v : float, array\n", " Position and velocity at each timestep.\n", " x : float, array\n", " Position at each timestep.\n", " '''\n", " # Initialize an empty arrays that will store x at each timestep.\n", " x = np.empty(nt)\n", ... ... @@ -781,7 +781,7 @@ }, "outputs": [], "source": [ "# Find the trajectory using our leapfrog function for\n", "# Find the trajectory using our verlet function for\n", "# two different starting values.\n", "xvals3 = verlet(accel_quartic, 0.01, 0.0, dt, nt)\n", "xvals4 = verlet(accel_quartic, 0.75, 0.0, dt, nt)\n", ... ... @@ -879,7 +879,7 @@ }, "outputs": [], "source": [ "# Find the trajectory using our leapfrog function for\n", "# Find the trajectory using our velocity-verlet function for\n", "# two different starting values.\n", "xvals5 = velocityverlet(accel_quartic, 0.01, 0.0, dt, nt)\n", "xvals6 = velocityverlet(accel_quartic, 0.75, 0.0, dt, nt)\n", ... ... @@ -923,7 +923,7 @@ "and e.g. a central difference for the second derivative:\n", "\n", "$$\n", "f''(x) \\approx \\frac{f(x+h)-2f(x)-f(x-h)}{h^2}\n", "f''(x) \\approx \\frac{f(x+h)-2f(x)+f(x-h)}{h^2}\n", "$$\n", "\n", "Say we're trying to solve some PDE of function in position and time, such as the heat or diffusion equation in one dimension:\n", ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!