From 9194e6461bf04e986069ca4cfbbe75a5302c05be Mon Sep 17 00:00:00 2001 From: Anton Te Date: Wed, 18 Jul 2018 23:56:31 -0700 Subject: [PATCH] Fix references to Julia code in split-operator method --- .../split-operator_method/split-operator_method.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/algorithms/split-operator_method/split-operator_method.md b/chapters/algorithms/split-operator_method/split-operator_method.md index 2fe3180e8..4011b2881 100644 --- a/chapters/algorithms/split-operator_method/split-operator_method.md +++ b/chapters/algorithms/split-operator_method/split-operator_method.md @@ -55,7 +55,7 @@ Frist, we need to set all the initial parameters, including the initial grids in {% method %} {% sample lang="jl" %} -[import:4-31, lang:"julia"](code/julia/split_op.jl) +[import:4-32, lang:"julia"](code/julia/split_op.jl) {% endmethod %} As a note, when we generate our grid in momentum space `k`, we need to split the grid into two lines, one that is going from `0` to `-kmax` and is then discontinuous and goes from `kmax` to `0`. @@ -64,7 +64,7 @@ Afterwards, we turn them into operators: {% method %} {% sample lang="jl" %} -[import:32-41, lang:"julia"](code/julia/split_op.jl) +[import:34-42, lang:"julia"](code/julia/split_op.jl) {% endmethod %} Here, we use a standard harmonic potential for the atoms to sit in and a gaussian distribution for an initial guess for the probability distribution. @@ -75,7 +75,7 @@ And finally go step-by-step through the simulation: {% method %} {% sample lang="jl" %} -[import:42-69, lang:"julia"](code/julia/split_op.jl) +[import:44-70, lang:"julia"](code/julia/split_op.jl) {% endmethod %} And that's it.