examples/relativity.py -- convert output to pprint (#719)
commit3fa6286dde03651456829a0abe55176c914acc94
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 26 Jul 2008 13:01:03 +0000 (26 17:01 +0400)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 26 Jul 2008 13:01:03 +0000 (26 17:01 +0400)
treee4b4d791cdeb7c82696745430a20c08c7b43c162
parent13d91b552525b7aa483f9a2864d8a001179775be
examples/relativity.py -- convert output to pprint  (#719)

This is how it now looks like:

----------------------------------------
Christoffel symbols:
       d
       ──(ν(r))
       dr
Γ⁰₁₀ = ────────
          2
       d
       ──(ν(r))
       dr
Γ⁰₀₁ = ────────
          2

        -λ(r) + ν(r) d
       ℯ            ⋅──(ν(r))
                     dr
Γ¹₀₀ = ──────────────────────

...

----------------------------------------
Ricci tensor:

...

----------------------------------------
solve the Einstein's equations:
           ⎛     C₂⎞
λ(r) = -log⎜C₁ + ──⎟
           ⎝     r ⎠
metric:
⎡      C₂                         ⎤
⎢-C₁ - ──     0     0       0     ⎥
⎢      r                          ⎥
⎢                                 ⎥
⎢             1                   ⎥
⎢   0      ───────  0       0     ⎥
⎢               C₂                ⎥
⎢          C₁ + ──                ⎥
⎢               r                 ⎥
⎢                                 ⎥
⎢                    2            ⎥
⎢   0         0     r       0     ⎥
⎢                                 ⎥
⎢                        2    2   ⎥
⎣   0         0     0   r ⋅sin (θ)⎦

Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Ondrej Certik <ondrej@certik.cz>
examples/relativity.py