|
9 | 9 | { |
10 | 10 | "cell_origin" : "server", |
11 | 11 | "cell_type" : "latex_view", |
12 | | - "source" : "\\begin{dmath*}{}\\text{Attached property PartialDerivative to~}\\partial{\\#}.\\end{dmath*}" |
| 12 | + "source" : "\\begin{dmath*}{}\\text{Attached property Coordinate to~}r.\\end{dmath*}" |
13 | 13 | }, |
14 | 14 | { |
15 | 15 | "cell_origin" : "server", |
16 | 16 | "cell_type" : "latex_view", |
17 | | - "source" : "\\begin{dmath*}{}\\text{Attached property Depends to~}A.\\end{dmath*}" |
| 17 | + "source" : "\\begin{dmath*}{}\\text{Attached property PartialDerivative to~}\\partial{\\#}.\\end{dmath*}" |
18 | 18 | }, |
19 | 19 | { |
20 | 20 | "cell_origin" : "server", |
21 | 21 | "cell_type" : "latex_view", |
22 | | - "source" : "\\begin{dmath*}{}\\text{Attached property Coordinate to~}r.\\end{dmath*}" |
| 22 | + "source" : "\\begin{dmath*}{}\\text{Attached property Depends to~}A.\\end{dmath*}" |
23 | 23 | } |
24 | 24 | ], |
25 | | - "source" : "\\partial{#}::PartialDerivative;\nA::Depends(r);\nr::Coordinate;" |
| 25 | + "source" : "r::Coordinate;\n\\partial{#}::PartialDerivative;\nA::Depends(r);" |
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "cell_origin" : "client", |
|
48 | 48 | "source" : "\\begin{dmath*}{}4{r}^{2}+\\frac{1}{2}\\left(-\\cos{4A}+1\\right) {\\left(\\partial_{r}{A}\\right)}^{2}+4{A}^{2} {\\left(\\partial_{r}{A}\\right)}^{2}\\end{dmath*}" |
49 | 49 | } |
50 | 50 | ], |
51 | | - "source" : "scas(ex,\"simplify\");" |
52 | | - }, |
53 | | - { |
54 | | - "cell_origin" : "client", |
55 | | - "cell_type" : "input", |
56 | | - "cells" : |
57 | | - [ |
58 | | - { |
59 | | - "cell_origin" : "server", |
60 | | - "cell_type" : "output", |
61 | | - "source" : "\\begin{verbatim}{\\sum} (0x7f26d4029738)\n 1:{\\pow} (0x7f26d401f8d8)\n 2: {\\partial} (0x7f26d4021e78)\n 3: _{r} (0x7f26d4033008)\n 4: {\\pow} (0x7f26d4033058)\n 5: {\\sin} (0x7f26d40341c8)\n 6: {A} (0x7f26d400b148)\n 7: {1} 2 (0x7f26d4034218)\n 8: {1} 2 (0x7f26d4044828)\n 9:{\\pow} (0x7f26d4044878)\n 10: {\\partial} (0x7f26d4027ca8)\n 11: _{r} (0x7f26d4027cf8)\n 12: {\\pow} (0x7f26d4031228)\n 13: {A} (0x7f26d4031278)\n 14: {1} 2 (0x7f26d40344b8)\n 15: {1} 2 (0x7f26d4034508)\n 16:{\\pow} (0x7f26d4027e88)\n 17: {\\partial} (0x7f26d4027ed8)\n 18: _{r} (0x7f26d4046c18)\n 19: {\\pow} (0x7f26d4046c68)\n 20: {r} (0x7f26d4036bf8)\n 21: {1} 2 (0x7f26d4036c48)\n 22: {1} 2 (0x7f26d4036c98)\n\n\\end{verbatim}" |
62 | | - } |
63 | | - ], |
64 | | - "source" : "print(tree(ex))" |
| 51 | + "source" : "map_sympy(ex,\"simplify\");" |
65 | 52 | }, |
66 | 53 | { |
67 | 54 | "cell_origin" : "client", |
|
87 | 74 | "source" : "\\begin{dmath*}{}2r\\end{dmath*}" |
88 | 75 | } |
89 | 76 | ], |
90 | | - "source" : "ex3=scas(ex2, \"simplify\");" |
91 | | - }, |
92 | | - { |
93 | | - "cell_origin" : "client", |
94 | | - "cell_type" : "input", |
95 | | - "cells" : |
96 | | - [ |
97 | | - { |
98 | | - "cell_origin" : "server", |
99 | | - "cell_type" : "latex_view", |
100 | | - "source" : "\\begin{dmath*}{}\\partial_{r}{{r}^{2}}\\end{dmath*}" |
101 | | - }, |
102 | | - { |
103 | | - "cell_origin" : "server", |
104 | | - "cell_type" : "latex_view", |
105 | | - "source" : "\\begin{dmath*}{}2r\\end{dmath*}" |
106 | | - } |
107 | | - ], |
108 | | - "source" : "ex2;\nex3;" |
| 77 | + "source" : "ex3=map_sympy(ex2, \"simplify\");" |
109 | 78 | }, |
110 | 79 | { |
111 | 80 | "cell_origin" : "client", |
|
115 | 84 | { |
116 | 85 | "cell_origin" : "server", |
117 | 86 | "cell_type" : "latex_view", |
118 | | - "source" : "\\begin{dmath*}{}4 r^{2} + 4 A^{2}{\\left (r \\right )} \\frac{d}{d r} A{\\left (r \\right )}^{2} + 4 \\sin^{2}{\\left (A{\\left (r \\right )} \\right )} \\cos^{2}{\\left (A{\\left (r \\right )} \\right )} \\frac{d}{d r} A{\\left (r \\right )}^{2}\\end{dmath*}" |
| 87 | + "source" : "\\begin{dmath*}{}4 r^{2} + \\left(- \\frac{1}{2} \\cos{\\left (4 A{\\left (r \\right )} \\right )} + \\frac{1}{2}\\right) \\frac{d}{d r} A{\\left (r \\right )}^{2} + 4 A^{2}{\\left (r \\right )} \\frac{d}{d r} A{\\left (r \\right )}^{2}\\end{dmath*}" |
119 | 88 | }, |
120 | 89 | { |
121 | 90 | "cell_origin" : "server", |
|
133 | 102 | { |
134 | 103 | "cell_origin" : "server", |
135 | 104 | "cell_type" : "latex_view", |
136 | | - "source" : "\\begin{dmath*}{}{\\left(\\partial_{r}{{\\left(\\sin{A}\\right)}^{2}}\\right)}^{2}+{\\left(\\partial_{r}{{A}^{2}}\\right)}^{2}+{\\left(\\partial_{r}{{r}^{2}}\\right)}^{2}\\end{dmath*}" |
| 105 | + "source" : "\\begin{dmath*}{}4{r}^{2}+\\frac{1}{2}\\left(-\\cos{4A}+1\\right) {\\left(\\partial_{r}{A}\\right)}^{2}+4{A}^{2} {\\left(\\partial_{r}{A}\\right)}^{2}\\end{dmath*}" |
137 | 106 | } |
138 | 107 | ], |
139 | 108 | "source" : "ex;" |
|
0 commit comments