Skip to content

Commit 92843a1

Browse files
committed
Cleaned dirty notebooks
1 parent 18107e9 commit 92843a1

2 files changed

Lines changed: 24 additions & 108 deletions

File tree

chapter1/poisson.ipynb

Lines changed: 12 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"cell_type": "code",
48-
"execution_count": 9,
48+
"execution_count": null,
4949
"id": "d742586c",
5050
"metadata": {},
5151
"outputs": [],
@@ -116,7 +116,7 @@
116116
},
117117
{
118118
"cell_type": "code",
119-
"execution_count": 10,
119+
"execution_count": null,
120120
"id": "a2a0a2a1",
121121
"metadata": {},
122122
"outputs": [],
@@ -126,7 +126,7 @@
126126
},
127127
{
128128
"cell_type": "code",
129-
"execution_count": 11,
129+
"execution_count": null,
130130
"id": "00e54163",
131131
"metadata": {},
132132
"outputs": [],
@@ -137,7 +137,7 @@
137137
},
138138
{
139139
"cell_type": "code",
140-
"execution_count": 12,
140+
"execution_count": null,
141141
"id": "5999c62b",
142142
"metadata": {},
143143
"outputs": [],
@@ -162,7 +162,7 @@
162162
},
163163
{
164164
"cell_type": "code",
165-
"execution_count": 13,
165+
"execution_count": null,
166166
"id": "541192ee",
167167
"metadata": {},
168168
"outputs": [],
@@ -196,18 +196,10 @@
196196
},
197197
{
198198
"cell_type": "code",
199-
"execution_count": 14,
199+
"execution_count": null,
200200
"id": "5925c6cd",
201201
"metadata": {},
202-
"outputs": [
203-
{
204-
"name": "stdout",
205-
"output_type": "stream",
206-
"text": [
207-
"9.49756716724664e-07\n"
208-
]
209-
}
210-
],
202+
"outputs": [],
211203
"source": [
212204
"ue = sin(pi*x)*sin(pi*y)\n",
213205
"\n",
@@ -236,18 +228,10 @@
236228
},
237229
{
238230
"cell_type": "code",
239-
"execution_count": 15,
231+
"execution_count": null,
240232
"id": "e5c1a8b8",
241233
"metadata": {},
242-
"outputs": [
243-
{
244-
"name": "stdout",
245-
"output_type": "stream",
246-
"text": [
247-
"9.768702410721585e-05\n"
248-
]
249-
}
250-
],
234+
"outputs": [],
251235
"source": [
252236
"# create the formal Norm object\n",
253237
"h1norm = SemiNorm(u - ue, domain, kind='h1')\n",
@@ -272,18 +256,10 @@
272256
},
273257
{
274258
"cell_type": "code",
275-
"execution_count": 16,
259+
"execution_count": null,
276260
"id": "d829e410",
277261
"metadata": {},
278-
"outputs": [
279-
{
280-
"name": "stdout",
281-
"output_type": "stream",
282-
"text": [
283-
"9.769164089397408e-05\n"
284-
]
285-
}
286-
],
262+
"outputs": [],
287263
"source": [
288264
"# create the formal Norm object\n",
289265
"h1norm = Norm(u - ue, domain, kind='h1')\n",
@@ -299,25 +275,7 @@
299275
]
300276
}
301277
],
302-
"metadata": {
303-
"kernelspec": {
304-
"display_name": "Python 3 (ipykernel)",
305-
"language": "python",
306-
"name": "python3"
307-
},
308-
"language_info": {
309-
"codemirror_mode": {
310-
"name": "ipython",
311-
"version": 3
312-
},
313-
"file_extension": ".py",
314-
"mimetype": "text/x-python",
315-
"name": "python",
316-
"nbconvert_exporter": "python",
317-
"pygments_lexer": "ipython3",
318-
"version": "3.12.9"
319-
}
320-
},
278+
"metadata": {},
321279
"nbformat": 4,
322280
"nbformat_minor": 5
323281
}

chapter2/vector-poisson.ipynb

Lines changed: 12 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
{
4646
"cell_type": "code",
47-
"execution_count": 1,
47+
"execution_count": null,
4848
"id": "d742586c",
4949
"metadata": {},
5050
"outputs": [],
@@ -100,7 +100,7 @@
100100
},
101101
{
102102
"cell_type": "code",
103-
"execution_count": 2,
103+
"execution_count": null,
104104
"id": "a2a0a2a1",
105105
"metadata": {},
106106
"outputs": [],
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"cell_type": "code",
113-
"execution_count": 3,
113+
"execution_count": null,
114114
"id": "00e54163",
115115
"metadata": {},
116116
"outputs": [],
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"cell_type": "code",
124-
"execution_count": 4,
124+
"execution_count": null,
125125
"id": "5999c62b",
126126
"metadata": {},
127127
"outputs": [],
@@ -146,7 +146,7 @@
146146
},
147147
{
148148
"cell_type": "code",
149-
"execution_count": 5,
149+
"execution_count": null,
150150
"id": "541192ee",
151151
"metadata": {},
152152
"outputs": [],
@@ -180,18 +180,10 @@
180180
},
181181
{
182182
"cell_type": "code",
183-
"execution_count": 6,
183+
"execution_count": null,
184184
"id": "5925c6cd",
185185
"metadata": {},
186-
"outputs": [
187-
{
188-
"name": "stdout",
189-
"output_type": "stream",
190-
"text": [
191-
"0.0003267962376349343\n"
192-
]
193-
}
194-
],
186+
"outputs": [],
195187
"source": [
196188
"ue1 = sin(pi*x)*sin(pi*y)*sin(pi*z)\n",
197189
"ue2 = sin(pi*x)*sin(pi*y)*sin(pi*z)\n",
@@ -225,18 +217,10 @@
225217
},
226218
{
227219
"cell_type": "code",
228-
"execution_count": 7,
220+
"execution_count": null,
229221
"id": "e5c1a8b8",
230222
"metadata": {},
231-
"outputs": [
232-
{
233-
"name": "stdout",
234-
"output_type": "stream",
235-
"text": [
236-
"0.01956220393797005\n"
237-
]
238-
}
239-
],
223+
"outputs": [],
240224
"source": [
241225
"# create the formal Norm object\n",
242226
"h1norm = SemiNorm(error, domain, kind='h1')\n",
@@ -261,18 +245,10 @@
261245
},
262246
{
263247
"cell_type": "code",
264-
"execution_count": 8,
248+
"execution_count": null,
265249
"id": "d829e410",
266250
"metadata": {},
267-
"outputs": [
268-
{
269-
"name": "stdout",
270-
"output_type": "stream",
271-
"text": [
272-
"0.01956493339348906\n"
273-
]
274-
}
275-
],
251+
"outputs": [],
276252
"source": [
277253
"# create the formal Norm object\n",
278254
"h1norm = Norm(error, domain, kind='h1')\n",
@@ -288,25 +264,7 @@
288264
]
289265
}
290266
],
291-
"metadata": {
292-
"kernelspec": {
293-
"display_name": "Python 3 (ipykernel)",
294-
"language": "python",
295-
"name": "python3"
296-
},
297-
"language_info": {
298-
"codemirror_mode": {
299-
"name": "ipython",
300-
"version": 3
301-
},
302-
"file_extension": ".py",
303-
"mimetype": "text/x-python",
304-
"name": "python",
305-
"nbconvert_exporter": "python",
306-
"pygments_lexer": "ipython3",
307-
"version": "3.12.9"
308-
}
309-
},
267+
"metadata": {},
310268
"nbformat": 4,
311269
"nbformat_minor": 5
312270
}

0 commit comments

Comments
 (0)