-
Solve Exercises 1, 2, 3(a) 5, 6, 7, 8, and 9(a) in Jarvis and Shier.
Due on November 12: Submit your answers at end of the class.
-
Solve Exercises 3, 9, and 11 in Jarvis and Shier.
Due on November 11: Push your IPython notebook to your GitHub repository.
-
Create a new repository.
-
Make a clone with, e.g., SourceTree.
-
Download JarvisShier_ex.ipynb and save it in the folder created above. Simulation part added (11/10)
-
Open the downloaded file with IPython, and execute the commands and write your own code in blank cells.
-
Commit and push the file.
-
Edit the file "README.md" in your repository (create a file if not existing) to make a link to your notebook through nbviewer:
Add to README.md the following line:
[My notebook](http://nbviewer.ipython.org/github/USER/REPO/blob/master/FILENAME.ipynb)
where you change
- USER to your user name,
- REPO to your repository name, and
- FILENAME to your file name.
Here is an example of the outcome.
Suggested solutions (11/12)
-
-
Solve Exercises 10 in Jarvis and Shier.
Due on November 11: Push your Python script file to your GitHub repository.
The algorithm is implemented for example in
fractions.gcd
, which you can find by running the following on IPython notebook:import fractions fractions.gcd??
(11/12)