Physics 129L - Winter 2019

Introduction to Scientific Computing

Lectures: MW 12:45-2:00 Broida 5223
MW 2:00-3:15 Broida 5223
Discussions: MW 3:30-4:45 Broida 5223
TR 3:30-4:45 Broida 5223
TR 1:00-2:15 Broida 5223

http://hep.ucsb.edu/people/claudio/ph129-w19


Instructor: Claudio Campagnari
Email: claudio@physics.ucsb.edu
Office: Broida 3001.  Phone 893-3742.
Office hours: T 2:30-3:30 or by appointment,
or whenever you can find me
Administrative Assistant: Debbie Ceder
Email: dla@physics.ucsb.edu
Office: Broida 5014. Phone 893-2058.
Teaching Assistants Jenny Smith
Email: jennifer_smith@ucsb.edu
Office hours: R 9-11 Broida 5223
Francesco Setti
Email: fsetti@physics.ucsb.edu
Office hours: M 10-12 in Broida 5223


Announcements:



Raspberry Pi
VERY IMPORTANT, READ CAREFULLY BEFORE THE FIRST CLASS


You are required to purchase a small computer for this course.
The computer is a Rapberry Pi 3 B+ (Rpi).
It is available online from several vendors, we recommend this kit from Amazon which is $69.99
with free Amazon Prime shipping as of December 21, 2018.
Note that as a student you can get a free 6 months trial subscription to Amazon Prime.

You must bring your Raspberry Pi to the first class.
Do not install the operating system, we will do that together on the first day.
To save some time you could assemble the kit ahead of time (takes 5 minutes)
but do not power it up since that will start the operating system installation.


You will need to bring the Rpi to every class.
The kit comes with an HDMI cable and a USB charger, but without a mouse/keyboard/monitor.
Workspaces with mouse/keyboard/monitor/HDMI cable/USB charger are set up in Broida 5223,
so you just need to bring the Rpi to class/section.
Broida 5223 will also be open most days 9-5 for you to work with your Rpi (Details to follow).

If you want to work at home you will need a mouse/keyboard/monitor. USB mouse/keyboards
are not very expensive. For a monitor you can use your TV if it has an HDMI input.
Or you can get yourself an inexpensive monitor from ebay, Craigslist, or at UCSB Surplus Sales.
Some older monitors have DVI or even VGA instead of HDMI inputs. You would then
need an adapter like this or this.

It is also possible to work with your own laptop/desktop. This is not entirely straightforward.
Jan 14:
Here are instructions to do it in a different way, contributed by one of the students in the class.
Course Description:

This is not a computer science course, but rather a basic programming course.
We will start with a practical introduction to the unix operating system.
We will then learn the python programming language, with an eye towards writing
programs to solve problems that we encounter in real world physics applications.
There will be a little bit of an emphasis on problems and applications from experimental
high energy physics (HEX), because the instructor works in HEX, but that does not matter much.
In the process we will also cover some concepts in statistics that you may not be familiar with, so consider that a bonus.
No prior knowledge of unix and python is required.
If you are already a unix/python guru, this course may be boring, especially at the beginning.


Textbooks

The two textbooks listed here are optional.
The first one is about the linux operating system and you can get it for free, so why not?
The second one is on python. There is so much online material on python that it is
not clear that it is worth buying a textbook. But if you prefer to have a textbook
to help you, this is a good choice. Note however that we will not follow it very closely.
  1. The Linux Command Line, Fourth Internet Edition
    William E. Shotts, Jr.
    Free link
  2. A Student's Guide to Python for Physical Modeling: Updated Edition
    J.M Kinder and P. Nelson
    Amazon link


Additional Material


Homework

Late homework will not be accepted except at the discretion
of the instructor. Since homework solutions will be posted shortly after
the homework due date, there will not be a lot of flexibility with
regards to late assignments. OTOH, if you cannot complete a homework
assignment because of illness or for some other good reason, let the
instructor know and the missed homework will not be counted towards your
final grade. In general, if the missed homework is because of
illness you will need to provide a note from a doctor or nurse.
For grading purposes, each exercise/problem will in a given homework
will have the same weight, unless otherwise specified. Similarly,
each homework will have the same weight for calculating the final score.

Homework instructions are here.


Homework Number Due date Exercises Solutions
1 22 Jan, 5pm here here
2 1 Feb, 5pm here here
3 8 Feb, 5pm here here
4 15 Feb, 5pm here here
5 Extended: 25 Feb, 5pm here here
6 1 Mar, 5pm here here
7 8 Mar, 5pm here here
8
(last one for credit)
22 Mar, 5pm here here
9
(bonus for fun, optional)
Never here here


Exams:

There will be no exams.
A letter grade will be assigned based on the homeworks. More details to follow.