-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nfs000000000a801f2500000048
123 lines (93 loc) · 2.98 KB
/
.nfs000000000a801f2500000048
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
echo ""
echo "-------------------------------------"
echo "Brian Cook's homework 1 solutions"
echo "-------------------------------------"
echo ""
echo "-------------------------------------"
echo "Running the Python scripts for each part"
echo "-------------------------------------"
echo ""
echo "-------------------------------------"
echo "Problem 1, Part A"
echo "-------------------------------------"
python3 homework1problem1parta.py
echo ""
echo "-------------------------------------"
echo "Problem 1, Part B"
echo "-------------------------------------"
python3 homework1problem1partb.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part A"
echo "-------------------------------------"
python3 homework1problem2parta.py
'''
echo ""
echo "-------------------------------------"
echo "Problem 2, Part B"
echo "-------------------------------------"
python3 homework1problem2partb.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part C"
echo "-------------------------------------"
python3 homework1problem2partc.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part D"
echo "-------------------------------------"
python3 homework1problem2partd.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part E"
echo "-------------------------------------"
python3 homework1problem2parte.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part F"
echo "-------------------------------------"
python3 homework1problem2partf.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part G"
echo "-------------------------------------"
python3 homework1problem2partg.py
echo ""
echo "-------------------------------------"
echo "Problem 2, Part H"
echo "-------------------------------------"
python3 homework1problem2parth.py
'''
echo ""
echo "-------------------------------------"
echo "Downloading data for Problem 3"
echo "-------------------------------------"
wget https://home.strw.leidenuniv.nl/~daalen/files/satgals_m11.txt
wget https://home.strw.leidenuniv.nl/~daalen/files/satgals_m12.txt
wget https://home.strw.leidenuniv.nl/~daalen/files/satgals_m13.txt
wget https://home.strw.leidenuniv.nl/~daalen/files/satgals_m14.txt
wget https://home.strw.leidenuniv.nl/~daalen/files/satgals_m15.txt
echo ""
echo "-------------------------------------"
echo "Problem 3, Part A"
echo "-------------------------------------"
python3 homework1problem3parta.py
'''
echo ""
echo "-------------------------------------"
echo "Problem 3, Part B"
echo "-------------------------------------"
echo ""
echo "-------------------------------------"
echo "Generating the pdf"
echo "-------------------------------------"
pdflatex homework1_cook.tex
bibtex homework1_cook.aux
pdflatex homework1_cook.tex
pdflatex homework1_cook.tex
echo ""
echo "-------------------------------------"
echo "My code/outputs are saved as homework1_cook.pdf"
echo "-------------------------------------"
'''