Lab 0: Introduction#
Last updated January 8, 2023
00. Content #
Mathematics#
N/A
Programming Skills#
Importing Libraries
Functions
Loops
Embedded Systems#
N/A
0. Required Hardware #
N/A
1. Before Starting #
Before really getting started with this course, navigate to the Brightspace and read through the Syllabus.
After this is completed, we will be setting up a file for organizational purposes that will be used to store all files throughout this course. To do this, navigate to the Home directory and add a new folder by right-clicking. Name the folder something that will be easy to find, such as “DSLab_Calc3.” If you’d like to put it at the top of the list of folders and make it even easier to find, add a tilde (~) at the beginning of the name you chose.
Save this and all other files going forward to this folder. It’ll make everything much easier to find and will especially come in handy when submitting the labs at the end of each class. This includes files that are downloaded through links during labs. When you click on a file link, it’ll send you to the GitHub page for that file. To download and save it to your folder, click on the button that says “Raw” on the top right of the file preview (unless it’s a PDF, then just click “Download”). This will take you to a white page with the information in black text. To see the file in the proper environment, right-click the screen and click “Save as…” and once you open it after this, it should appear in the correct environment!
Laboratory ethics#
“I pledge to behave ethically and with honesty in this course. I may discuss approaches for a solution with others, but my submitted lab report will be my own work, including all code. I will not make my finished reports available to other students, even after the semester is over. In particular, I will not post my labs on the Internet or make my files available to other people. I will not be a cheater.”
2. Toy Lab #
Write your name and email below:
First Name, Last Name, Email
Skill Checks#
Exercise 1: #
Use Euler’s formula to write \(\cos \theta\) in terms of complex exponentials. Write the steps of your derivation using Latex code.
Note: If you are new to Latex, see the [first week lab of the Data Science Labs on Differential and Integral Calculus].(https://thedatasciencelabs.github.io/DSLab_Calculus/labs/1_intro_to_notebooks/lab0.html)
Exercise 2 #
Simplify the expression \(e^{i 2 \pi k}-1\), where \(k\) is an integer. How different would the answer be is \(k\) was not an integer?
Exercise 3 #
a) Write a function that computes the sum \(\sum_{n=0}^N e^{i \frac{2 \pi}{10} n }\).
b) Use your function to evaluate the sum for \(N=7\).
Hint: Don’t forget to load the relevant library.
3. Submitting the Lab #
Once you have finished the first lab, you will need to submit it. Recall that you are expected to submit the lab before the end of class everyweek.
Before you submit, make sure that everything is completely filled out and saved (either by typing Ctrl+S or by clicking the floppy disk icon in the top left of this application). Then:
Navigate to “File” in the top left of the screen and find “Save and Export Notebook As… ”. Once the drop-down comes up, click on “HTML”.
The html file will now be saved in the Downloads folder. Open the html file in the web browser by double-clicking on the file in Downloads.
Once the html file has been opened in the browser, right-click anywhere on the window and choose “Print… ” or use Ctrl+P to open the print window.
For “Destination”, select “Save as PDF” in the drop down menu and click “Save”.
Turn in the PDF through Gradescope.
Assign the listed exercise numbers to the correct pages of the PDF you are uploading and hit the “Submit” button.
Once you have submitted your lab in Brightspace, you are done and free to leave. See you next week!