Skip to content

Commit 19534f0

Browse files
authored
Add section titles to curvi_linear_latex.py (#416)
1 parent 1a9bda0 commit 19534f0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

examples/LaTeX/curvi_linear_latex.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def derivatives_in_spherical_coordinates():
1515
A = sp3d.mv('A','vector',f=True)
1616
B = sp3d.mv('B','bivector',f=True)
1717

18+
print('#Derivatives in Spherical Coordinates')
19+
1820
print('f =',f)
1921
print('A =',A)
2022
print('B =',B)
@@ -69,6 +71,8 @@ def derivatives_in_elliptic_cylindrical_coordinates():
6971
A = elip3d.mv('A','vector',f=True)
7072
B = elip3d.mv('B','bivector',f=True)
7173

74+
print('#Derivatives in Elliptic Cylindrical Coordinates')
75+
7276
print('f =',f)
7377
print('A =',A)
7478
print('B =',B)
@@ -92,6 +96,8 @@ def derivatives_in_prolate_spheroidal_coordinates():
9296
A = ps3d.mv('A','vector',f=True)
9397
B = ps3d.mv('B','bivector',f=True)
9498

99+
print('#Derivatives in Prolate Spheroidal Coordinates')
100+
95101
print('f =',f)
96102
print('A =',A)
97103
print('B =',B)

examples/ipython/LaTeX.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"\\lstloadlanguages{Python}\n",
144144
"\n",
145145
"\\begin{document}\n",
146+
"Derivatives in Spherical Coordinates\n",
146147
"\\begin{equation*} f = f \\end{equation*}\n",
147148
"\\begin{equation*} A = A^{r} \\boldsymbol{e}_{r} + A^{\\theta } \\boldsymbol{e}_{\\theta } + A^{\\phi } \\boldsymbol{e}_{\\phi } \\end{equation*}\n",
148149
"\\begin{equation*} B = B^{r\\theta } \\boldsymbol{e}_{r}\\wedge \\boldsymbol{e}_{\\theta } + B^{r\\phi } \\boldsymbol{e}_{r}\\wedge \\boldsymbol{e}_{\\phi } + B^{\\theta \\phi } \\boldsymbol{e}_{\\theta }\\wedge \\boldsymbol{e}_{\\phi } \\end{equation*}\n",
@@ -158,6 +159,7 @@
158159
"\\begin{equation*} \\boldsymbol{\\nabla} f = \\frac{\\partial_{u} f }{\\sqrt{u^{2} + v^{2}}} \\boldsymbol{e}_{u} + \\frac{\\partial_{v} f }{\\sqrt{u^{2} + v^{2}}} \\boldsymbol{e}_{v} + \\frac{\\partial_{\\phi } f }{u v} \\boldsymbol{e}_{\\phi } \\end{equation*}\n",
159160
"\\begin{equation*} \\boldsymbol{\\nabla} \\cdot A = \\frac{u A^{u} }{\\left(u^{2} + v^{2}\\right)^{\\frac{3}{2}}} + \\frac{v A^{v} }{\\left(u^{2} + v^{2}\\right)^{\\frac{3}{2}}} + \\frac{\\partial_{u} A^{u} }{\\sqrt{u^{2} + v^{2}}} + \\frac{\\partial_{v} A^{v} }{\\sqrt{u^{2} + v^{2}}} + \\frac{A^{v} }{v \\sqrt{u^{2} + v^{2}}} + \\frac{A^{u} }{u \\sqrt{u^{2} + v^{2}}} + \\frac{\\partial_{\\phi } A^{\\phi } }{u v} \\end{equation*}\n",
160161
"\\begin{equation*} \\boldsymbol{\\nabla} \\W B = \\left ( \\frac{u B^{v\\phi } }{\\left(u^{2} + v^{2}\\right)^{\\frac{3}{2}}} - \\frac{v B^{u\\phi } }{\\left(u^{2} + v^{2}\\right)^{\\frac{3}{2}}} - \\frac{\\partial_{v} B^{u\\phi } }{\\sqrt{u^{2} + v^{2}}} + \\frac{\\partial_{u} B^{v\\phi } }{\\sqrt{u^{2} + v^{2}}} - \\frac{B^{u\\phi } }{v \\sqrt{u^{2} + v^{2}}} + \\frac{B^{v\\phi } }{u \\sqrt{u^{2} + v^{2}}} + \\frac{\\partial_{\\phi } B^{uv} }{u v}\\right ) \\boldsymbol{e}_{u}\\wedge \\boldsymbol{e}_{v}\\wedge \\boldsymbol{e}_{\\phi } \\end{equation*}\n",
162+
"Derivatives in Prolate Spheroidal Coordinates\n",
161163
"\\begin{equation*} f = f \\end{equation*}\n",
162164
"\\begin{equation*} A = A^{\\xi } \\boldsymbol{e}_{\\xi } + A^{\\eta } \\boldsymbol{e}_{\\eta } + A^{\\phi } \\boldsymbol{e}_{\\phi } \\end{equation*}\n",
163165
"\\begin{equation*} B = B^{\\xi \\eta } \\boldsymbol{e}_{\\xi }\\wedge \\boldsymbol{e}_{\\eta } + B^{\\xi \\phi } \\boldsymbol{e}_{\\xi }\\wedge \\boldsymbol{e}_{\\phi } + B^{\\eta \\phi } \\boldsymbol{e}_{\\eta }\\wedge \\boldsymbol{e}_{\\phi } \\end{equation*}\n",

0 commit comments

Comments
 (0)