Skip to content

Commit 19ba594

Browse files
Butt4cak3jiegillet
authored andcommitted
Python verlet line numbers (#478)
* Fixed line numbers for Python Verlet integration
1 parent 0a38701 commit 19ba594

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contents/verlet_integration/verlet_integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Here is what it looks like in code:
3939
{% sample lang="java" %}
4040
[import:13-28, lang:"java"](code/java/Verlet.java)
4141
{% sample lang="py" %}
42-
[import:1-9, lang:"python"](code/python/verlet.py)
42+
[import:1-10, lang:"python"](code/python/verlet.py)
4343
{% sample lang="hs" %}
4444
[import:14-21, lang:"haskell"](code/haskell/verlet.hs)
4545
{% sample lang="scratch" %}
@@ -85,7 +85,7 @@ However, the error for this is $$\mathcal{O}(\Delta t)$$, which is quite poor, b
8585
{% sample lang="java" %}
8686
[import:30-49, lang:"java"](code/java/Verlet.java)
8787
{% sample lang="py" %}
88-
[import:11-21, lang:"python"](code/python/verlet.py)
88+
[import:12-23, lang:"python"](code/python/verlet.py)
8989
{% sample lang="hs" %}
9090
[import:23-28, lang:"haskell"](code/haskell/verlet.hs)
9191
{% sample lang="scratch" %}
@@ -145,7 +145,7 @@ Here is the velocity Verlet method in code:
145145
{% sample lang="java" %}
146146
[import:51-65, lang:"java"](code/java/Verlet.java)
147147
{% sample lang="py" %}
148-
[import:23-32, lang:"python"](code/python/verlet.py)
148+
[import:25-34, lang:"python"](code/python/verlet.py)
149149
{% sample lang="hs" %}
150150
[import:30-35, lang:"haskell"](code/haskell/verlet.hs)
151151
{% sample lang="scratch" %}

0 commit comments

Comments
 (0)