Skip to content
Snippets Groups Projects
Commit c23aceaf authored by Christoph Groth's avatar Christoph Groth
Browse files

tutorial: fix spacing for unary minus signs

parent 3fc6ff94
No related branches found
No related tags found
No related merge requests found
...@@ -177,16 +177,16 @@ subbands that increases with energy. ...@@ -177,16 +177,16 @@ subbands that increases with energy.
However, it does not hurt to define the opposite direction of hopping as However, it does not hurt to define the opposite direction of hopping as
well:: well::
sys[lat(1, 0), lat(0, 0)] = - t sys[lat(1, 0), lat(0, 0)] = -t
sys[lat(0, 0), lat(1, 0)] = - t.conj() sys[lat(0, 0), lat(1, 0)] = -t.conj()
(assuming that `t` is complex) is perfectly fine. However, (assuming that `t` is complex) is perfectly fine. However,
be aware that also be aware that also
:: ::
sys[lat(1, 0), lat(0, 0)] = - 1 sys[lat(1, 0), lat(0, 0)] = -1
sys[lat(0, 0), lat(1, 0)] = - 2 sys[lat(0, 0), lat(1, 0)] = -2
is valid code. In the latter case, the hopping ``sys[lat(1, 0), is valid code. In the latter case, the hopping ``sys[lat(1, 0),
lat(0, 0)]`` is overwritten by the last line and also equals to -2. lat(0, 0)]`` is overwritten by the last line and also equals to -2.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment