Physics 128 Course Handouts and Homework

Course Information

Course materials

Course information handout

Lab notebook and report guidelines



Lecture Videos

Introduction to LaTeX: watch beginning at 26:45.
Introduction to Python plotting: watch beginning at 45:59.

Probability distributions and nonuniform random numbers
The error function and integer histograms

Slides
Probability distributions



Experiments
  1. Soldering
  2. Counting Nuclear Radiation

Lab descriptions

Older lab manuals

Experiment request form
Please note that we will not be using the following labs: Cloud Chamber, HD Shift, Microwave Optics, Mossbauer Spectroscopy, PNMR, or Diode Laser.

Preparing your lab reports and notebooks

All lab reports must be PDF files created with LaTeX, as described in the guidelines handout above. They may be no larger than 11 MB (Megabytes) each. Scale down any images you intend to use in your report so that the number of pixels in the horizontal direction is no more than 1024. For your notebooks, scan or photograph the pages and use LaTeX or some other software to combine them into a single PDF file. The notebook file may be no larger than 17 MB, so you may need to scale the images before combining them. Make sure your notebook images are readable! You will lose credit if the TAs cannot read what you submit.

Please include your perm number, your last name, and the assignment in the filename for everything you turn in. For example, fermi_1602177_notebook1.pdf or fermi_1602177_report1.pdf . Do not use spaces in your filenames. You may use underscores instead.

It is a good idea to compute and save the MD5 checksum of each file you submit. Use Google to find out how to do this on your computer. Upload the checksum to Gradescope as a separate text file along with each notebook or report. That way if you forget the attachment or the file is corrupted, the file can be sent later and the TA will know it was completed on time.



Turning in your work

You will submit your lab notebooks and reports as two separate PDF files using Gradescope: https://www.gradescope.com.

Prepare the PDF files as instructed below and in the Lab Notebook and Report Guidelines above. Click on the Log In button at the top right of the Gradescope home page. Select School Credentials at the lower left of the popup window and use your browser to search for “barb” in the list of schools to find UCSB NetID. Then log in.

Select this class and submit one PDF file for each Gradescope assignment.

If you do not see our class, an account has probably already been created for you using an email different from the one I did (I used the one ending in @ucsb.edu without umail.) In that case, merge your accounts according to the instructions here.

You must turn in all 4 lab notebooks and 3 reports to pass this class. Assignments turned in late will have 10% of the possible remaining credit deducted for each 24-hour period past the deadline.



Assignments

Week 2 Week 3
Week 4
Week 5
Week 6

Examples

Overleaf (set up free account to use)
Overleaf example
Copy Overleaf project

LaTeX example source
LaTeX example figure
LaTeX example PDF output file

Python plotting script: simple_plot.py
Sample data file

Integer histogram script: inthist.py



Python 3.11 Documentation

Contents
Tutorial
Library Reference
Matplotlib

Beautiful Soup



Other Material

Kinder and Nelson Python book

Williams graphic design book



UCSB logo