8000 Tidy up math notation · mzahana/spatialmath-python@fc467af · GitHub
[go: up one dir, main page]

Skip to content

Commit fc467af

Browse files
committed
Tidy up math notation
1 parent 3320561 commit fc467af

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

symbolic/angvelxform_dot.ipynb

Copy file name to clipboard
Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 20,
16+
"execution_count": 2,
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -41,14 +41,14 @@
4141
"\n",
4242
"\n",
4343
"$\n",
44-
"\\mathbf{A} = I_{3 \\times 3} - \\frac{1}{2} [v]_\\times + [v]^2_\\times \\frac{1}{\\theta^2} \\left( 1 - \\frac{\\theta}{2} \\frac{\\sin \\theta}{1 - \\cos \\theta} \\right)\n",
44+
"\\mathbf{A} = \\mathbf{1}_{3 \\times 3} - \\frac{1}{2} [v]_\\times + [v]^2_\\times \\frac{1}{\\theta^2} \\left( 1 - \\frac{\\theta}{2} \\frac{\\sin \\theta}{1 - \\cos \\theta} \\right)\n",
4545
"$\n",
4646
"where $\\theta = \\| \\varphi \\|$ and $v = \\hat{\\varphi}$\n",
4747
"\n",
4848
"We simplify the equation as\n",
4949
"\n",
5050
"$\n",
51-
"\\mathbf{A} = I_{3 \\times 3} - \\frac{1}{2} [v]_\\times + [v]^2_\\times \\Theta\n",
51+
"\\mathbf{A} = \\mathbf{1}_{3 \\times 3} - \\frac{1}{2} [v]_\\times + [v]^2_\\times \\Theta\n",
5252
"$\n",
5353
"\n",
5454
"where\n",
@@ -308,6 +308,26 @@
308308
"source": [
309309
"which is simply the dot product over the norm."
310310
]
311+
},
312+
{
313+
"cell_type": "code",
314+
"execution_count": 7,
315+
"metadata": {},
316+
"outputs": [
317+
{
318+
"name": "stdout",
319+
"output_type": "stream",
320+
"text": [
321+
"ex 79C7 p(A(t))*Derivative(A(t), t)\n"
322+
]
323+
}
324+
],
325+
"source": [
326+
"A, t = symbols('A t', real=True)\n",
327+
"A_t = Function(A)(t)\n",
328+
"d = diff(exp(A_t), t)\n",
329+
"print(d)"
330+
]
311331
}
312332
],
313333
"metadata": {

0 commit comments

Comments
 (0)
0