HW2, practicing with jupyter notebooks¶
For this assignment, you must be able to launch jupyter notebooks (Python 3 flavored) and run latex and python in them.
1. Checking installation¶
- What version(s) of python do you have installed on the machine you are using to complete this assignment?
- Where is it/are they installed?
2. Setting up jupyter notebooks¶
It will be helpful to have a jupyter notebook open to answer these questions, either the HW02.ipynb or a new notebook you open that will run python version 3.4 or higher.
- What are the modes available to you? What keystrokes allow you to switch between them?
- What are the types of cells available to you? How can you switch between them?
- List two other commands that you have found or think you will find useful.
- Convert the following cell to markdown and, using at least four types of markdown plain text formatting syntax, tell me anything about you that you feel comfortable sharing (this can be some of the same things you shared on the first day, like your program and year in the program, or anything else!).
- Using Latex for formatting in the next shell, share your favorite mathematical formula and a sentence about why you like it.
Hint: Here is a cheat sheet on LaTex math syntax: https://reu.dimacs.rutgers.edu/Symbols.pdf
3. Python in jupyter notebooks¶
- In the following cell, define variables that you need to calculate a value from your favorite equation, and then make the calculation referencing those variables. Use comments to identify the equation, and to note the units of all variables you defined.
In [ ]:
- Do you get different results if you enter your numbers all as whole numbers (with no decimal points) versus explicitly defining them so that they are rendered as floats?
In [ ]:
- In python, create a list of at least five things or people (represented in string form) that you are grateful for. Sort it and print it. Then add five more things, reverse sort, and print again. Also print the length to make sure you have ten.
In [ ]: