Skip to content

Commit 9ef4bfc

Browse files
committed
Added week 3 solutions
1 parent 1f88637 commit 9ef4bfc

8 files changed

Lines changed: 1536 additions & 4 deletions

File tree

CH40208/_toc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,10 @@ parts:
148148
title: Comparisons and Flow Control
149149
- file: worked_examples/week_2_advanced_loop_control
150150
title: Advanced Loop Control
151+
- file: worked_examples/week_3_index
152+
title: Week 3
153+
sections:
154+
- file: worked_examples/week_3_numpy
155+
title: NumPy
156+
- file: worked_examples/week_3_synoptic_exercises
157+
title: Synoptic Exercises
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Ionic strength / M | Mean activity
2+
0.000 1.000
3+
0.003 0.886
4+
0.006 0.846
5+
0.015 0.777
6+
0.030 0.712
7+
0.060 0.637
8+
0.150 0.529
9+
0.300 0.446
10+
0.600 0.366
11+
1.500 0.268
12+
3.000 0.204
13+
6.000 0.155

CH40208/worked_examples/sf6.csv

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
# Pressure / bar | Molar volume / Lmol-1
2+
5.0000, 4.6673
3+
5.1000, 4.5699
4+
5.2000, 4.4761
5+
5.3000, 4.3859
6+
5.4000, 4.2991
7+
5.5000, 4.2154
8+
5.6000, 4.1346
9+
5.7000, 4.0567
10+
5.8000, 3.9815
11+
5.9000, 3.9087
12+
6.0000, 3.8385
13+
6.1000, 3.7705
14+
6.2000, 3.7046
15+
6.3000, 3.6409
16+
6.4000, 3.5791
17+
6.5000, 3.5193
18+
6.6000, 3.4612
19+
6.7000, 3.4049
20+
6.8000, 3.3502
21+
6.9000, 3.2970
22+
7.0000, 3.2454
23+
7.1000, 3.1953
24+
7.2000, 3.1465
25+
7.3000, 3.0990
26+
7.4000, 3.0528
27+
7.5000, 3.0079
28+
7.6000, 2.9641
29+
7.7000, 2.9214
30+
7.8000, 2.8798
31+
7.9000, 2.8393
32+
8.0000, 2.7997
33+
8.1000, 2.7612
34+
8.2000, 2.7235
35+
8.3000, 2.6868
36+
8.4000, 2.6509
37+
8.5000, 2.6159
38+
8.6000, 2.5816
39+
8.7000, 2.5482
40+
8.8000, 2.5155
41+
8.9000, 2.4835
42+
9.0000, 2.4522
43+
9.1000, 2.4216
44+
9.2000, 2.3916
45+
9.3000, 2.3623
46+
9.4000, 2.3336
47+
9.5000, 2.3055
48+
9.6000, 2.2780
49+
9.7000, 2.2510
50+
9.8000, 2.2246
51+
9.9000, 2.1987
52+
10.000, 2.1733
53+
10.100, 2.1484
54+
10.200, 2.1239
55+
10.300, 2.1000
56+
10.400, 2.0765
57+
10.500, 2.0534
58+
10.600, 2.0308
59+
10.700, 2.0085
60+
10.800, 1.9867
61+
10.900, 1.9653
62+
11.000, 1.9442
63+
11.100, 1.9235
64+
11.200, 1.9032
65+
11.300, 1.8832
66+
11.400, 1.8636
67+
11.500, 1.8443
68+
11.600, 1.8253
69+
11.700, 1.8066
70+
11.800, 1.7883
71+
11.900, 1.7702
72+
12.000, 1.7524
73+
12.100, 1.7350
74+
12.200, 1.7178
75+
12.300, 1.7008
76+
12.400, 1.6842
77+
12.500, 1.6677
78+
12.600, 1.6516
79+
12.700, 1.6357
80+
12.800, 1.6200
81+
12.900, 1.6045
82+
13.000, 1.5893
83+
13.100, 1.5743
84+
13.200, 1.5595
85+
13.300, 1.5450
86+
13.400, 1.5306
87+
13.500, 1.5164
88+
13.600, 1.5025
89+
13.700, 1.4887
90+
13.800, 1.4751
91+
13.900, 1.4618
92+
14.000, 1.4485
93+
14.100, 1.4355
94+
14.200, 1.4227
95+
14.300, 1.4100
96+
14.400, 1.3974
97+
14.500, 1.3851
98+
14.600, 1.3729
99+
14.700, 1.3608
100+
14.800, 1.3489
101+
14.900, 1.3372
102+
15.000, 1.3256
103+
15.100, 1.3141
104+
15.200, 1.3028
105+
15.300, 1.2917
106+
15.400, 1.2806
107+
15.500, 1.2697
108+
15.600, 1.2589
109+
15.700, 1.2483
110+
15.800, 1.2377
111+
15.900, 1.2273
112+
16.000, 1.2170
113+
16.100, 1.2068
114+
16.200, 1.1968
115+
16.300, 1.1868
116+
16.400, 1.1770
117+
16.500, 1.1672
118+
16.600, 1.1576
119+
16.700, 1.1481
120+
16.800, 1.1387
121+
16.900, 1.1293
122+
17.000, 1.1201
123+
17.100, 1.1110
124+
17.200, 1.1019
125+
17.300, 1.0930
126+
17.400, 1.0841
127+
17.500, 1.0754
128+
17.600, 1.0667
129+
17.700, 1.0581
130+
17.800, 1.0496
131+
17.900, 1.0411
132+
18.000, 1.0328
133+
18.100, 1.0245
134+
18.200, 1.0163
135+
18.300, 1.0082
136+
18.400, 1.0001
137+
18.500, 0.99214
138+
18.600, 0.98424
139+
18.700, 0.97640
140+
18.800, 0.96863
141+
18.900, 0.96093
142+
19.000, 0.95329
143+
19.100, 0.94572
144+
19.200, 0.93821
145+
19.300, 0.93076
146+
19.400, 0.92338
147+
19.500, 0.91605
148+
19.600, 0.90878
149+
19.700, 0.90156
150+
19.800, 0.89440
151+
19.900, 0.88730
152+
20.000, 0.88025
153+
20.100, 0.87324
154+
20.200, 0.86629
155+
20.300, 0.85939
156+
20.400, 0.85254
157+
20.500, 0.84573
158+
20.600, 0.83897
159+
20.700, 0.83226
160+
20.800, 0.82558
161+
20.900, 0.81895
162+
21.000, 0.81236
163+
21.100, 0.80581
164+
21.200, 0.79930
165+
21.300, 0.79283
166+
21.400, 0.78639
167+
21.500, 0.77999
168+
21.600, 0.77362
169+
21.700, 0.76728
170+
21.800, 0.76098
171+
21.900, 0.75470
172+
22.000, 0.74846
173+
22.100, 0.74224
174+
22.200, 0.73604
175+
22.300, 0.72988
176+
22.400, 0.72373
177+
22.500, 0.71761
178+
22.600, 0.71150
179+
22.700, 0.70542
180+
22.800, 0.69935
181+
22.900, 0.69329
182+
23.000, 0.68725
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Week 3 Worked Examples
2+
3+
Worked solutions for Week 3 exercises covering working with data:
4+
5+
- [NumPy Exercises](week_3_numpy.ipynb)
6+
- [Synoptic Exercises](week_3_synoptic_exercises.ipynb)
7+
8+
**How to use these worked examples:**
9+
- Try each exercise yourself first before looking at the solution
10+
- Each notebook corresponds to exercises from a specific course page
11+
- Download the notebooks to run the code yourself and experiment
12+
- Your solution might look different - that's fine as long as it gives the correct answer!
13+
14+
**Note:** The synoptic exercises combine concepts from NumPy, Matplotlib, and File I/O to solve more complex problems.

0 commit comments

Comments
 (0)