Skip to content

Commit d22380a

Browse files
authored
Add missing code samples referenced by the surrounding text. (#293)
These were present in the latex, but lost in the markdown conversion.
1 parent 1280ced commit d22380a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

doc/galgebra_guide.rst

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,11 @@ instantiated with
17731773

17741774
To define the submanifold we must def a coordinate map from the coordinates of the submanifold to each of the coordinates of the base manifold. Thus the arguments ``map`` and ``coords`` are respectively lists of functions and symbols. The list of symbols, ``coords``, are the coordinates of the submanifold and are of length equal to the dimension of the submanifold. The list of functions, ``map``, define the mapping from the coordinate space of the submanifold to the coordinate space of the
17751775
base manifold. The length of ``map`` is equal to the dimension of the base manifold and each function in ``map`` is a function of the coordinates of the submanifold. ``root`` is the root of the string that is used to name the basis vectors of the submanifold. The default value of ``root`` is ``e``. The result of this is that if the *sympy* symbols for the coordinates are ``u`` and ``v`` (two dimensional manifold) the text symbols for the basis vectors are ``e_u`` and ``e_v`` or in LaTeX
1776-
:math:`e_{u}` and :math:`e_{v}`. As a concrete example consider the following code. The output of this program (using LaTeX) is
1776+
:math:`e_{u}` and :math:`e_{v}`. As a concrete example consider the following code.
1777+
1778+
.. literalinclude:: python/submanifold.py
1779+
1780+
The output of this program (using LaTeX) is
17771781

17781782
|image0|
17791783

@@ -1811,7 +1815,11 @@ transformation. *Note that to instantiate linear transformations coordinates, :m
18111815

18121816
``f`` is ``True`` or ``False``. If ``True`` the symbolic coefficients of the general linear transformation are instantiated as functions of the coordinates.
18131817

1814-
The different methods of instantiation are demonstrated in the code ``LtransInst.py`` with output
1818+
The different methods of instantiation are demonstrated in the code ``LtransInst.py``
1819+
1820+
.. literalinclude:: python/LtransInst.py
1821+
1822+
with output
18151823

18161824
|image2|
18171825

@@ -1842,14 +1850,22 @@ The ``Ltrans.py`` demonstrate the use of the various ``Lt`` member functions and
18421850

18431851
The ``matrix()`` member function returns a *sympy* ``Matrix`` object which can be printed in IPython notebook. To directly print an linear transformation in *ipython notebook* one must implement (yet to be done) a printing method similar to ``mv.Fmt()``.
18441852

1845-
Note that in ``Ltrans.py`` lines 30 and 49 are commented out since the latex output of those statements would run off the page. The use can uncomment those statements and run the code in the “LaTeX docs” directory to see the output. The output of this code is.
1853+
Note that in ``Ltrans.py`` lines 30 and 49 are commented out since the latex output of those statements would run off the page. The use can uncomment those statements and run the code in the “LaTeX docs” directory to see the output.
1854+
1855+
.. literalinclude:: python/Ltrans.py
1856+
1857+
The output of this code is.
18461858

18471859
|image3|
18481860

18491861
Differential Operators
18501862
----------------------
18511863

1852-
For the mathematical treatment of linear multivector differential operators see section [ldops]. The is a differential operator class ``Dop``. However, one never needs to use it directly. The operators are constructed from linear combinations of multivector products of the operators ``Ga.grad`` and ``Ga.rgrad`` as shown in the following code for both orthogonal rectangular and spherical 3-d coordinate systems. The output of this code is.
1864+
For the mathematical treatment of linear multivector differential operators see section [ldops]. The is a differential operator class ``Dop``. However, one never needs to use it directly. The operators are constructed from linear combinations of multivector products of the operators ``Ga.grad`` and ``Ga.rgrad`` as shown in the following code for both orthogonal rectangular and spherical 3-d coordinate systems.
1865+
1866+
.. literalinclude:: python/Dop.py
1867+
1868+
The output of this code is.
18531869

18541870
|image4|
18551871

@@ -1877,6 +1893,8 @@ The mathematical background for multi-linear functions is in section [MLtrans].
18771893
| | tensor is a tensor field from :math:`\T{f}` . |
18781894
+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
18791895

1896+
.. literalinclude:: python/TensorDef.py
1897+
18801898
Basic Multilinear Function Class Functions
18811899
------------------------------------------
18821900

0 commit comments

Comments
 (0)