Computers for Physicists
2nd semester, 2003/2004, Lecturer: Dr. Rennan Barkana
Notes :
The syllabus is available (in PDF) here .
Click
here to go to the department course webpage on minerva, which has
a lot of useful information.
Click
here to go to the TAU online course schedule.
The lecturer is Dr. Rennan Barkana: web page , e-mail: barkana@wise.tau.ac.il ,
phone: 640-5993, office: Kaplun 112.
The TA's are Mr. Ido Adam (adamido@post.tau.ac.il ,
640-7452, Kaplun 510), Mr. Avi Shporer (shporer@wise.tau.ac.il ,
640-6607, Kaplun 106), Mr. Shay Mozes (shaymoze@post.tau.ac.il ,
640-8988, Kaplun 517), and Mr. Etay Mar Or (etaymaro@post.tau.ac.il ,
Shenkar 421).
The grader is Mr. Vadim Winebrand (winebra@post.tau.ac.il ).
In the recitations we run C in a Unix environment. At home, it
is possible to also use other compilers. For example, a free
C compiler in Windows is available
here . Note the
useful information for using this compiler, here .
Note that the book "Numerical Recipes in C" is freely available
here .
Instructions for submitting the homework exercises are
here .
To view PDF, download the Adobe Acrobat Reader,
available free
here .
To view postscript in Windows, download Ghostscript and then
GSview, both available
here .
The C math functions are listed (in PDF) here . A reference for the C libraries
(including a listing of math functions) is also available
here .
Final Project : Instructions , Design paper example ,
Matlab plotter script ,
Answers to questions .
Final Exam: June 20 (A), Sept. 1 (B).
Exam A Solution available here .
Project Grades available here .
Lecture Date
Topic
Sections inKernighan & Ritchie
Lecture (PDF)
Recitation (PDF)
Exercise
29/Feb/2004
Introduction, Variable Types, Arithmetic Operations
2.1, 2.2, 2.4, 2.5
Lecture 1 Notes
Recitation 1 Notes
14/Mar/2004
Arithmetic Precedence, Binary Numbers, Increment Operator
2.5, 2.8, 2.10
Lecture 2 Notes
Recitation 2 Notes
Exercise 1
Solution 1
21/Mar/2004
Relational and Logical Operators, if-else, Loops
2.6, 2.11, 2.12, 3.1, 3.2, 3.3, 3.5, 3.6
Lecture 3 Notes
Recitation 3 Notes
Exercise 2
Solution 2
28/Mar/2004
Arrays, Functions
1.6, 1.7, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6
Lecture 4 Notes
Recitation 4 Notes
Solution (text)
Exercise 3
Solution 3
18/Apr/2004
More Functions, The C Preprocessor
4.10, 4.11
Lecture 5 Notes
Recitation 5 Notes
Exercise 4
Solution 4
25/Apr/2004
Input/Output, Pointers
7.2, 7.4, 5.1, 5.2
Lecture 6 Notes
Recitation 6 Notes
Exercise 5
Solution 5
02/May/2004
More Pointers, Structures, Final Project
5.3, 6.1
Lecture 7 Notes
Recitation 7 Notes
(also Exercise 6)
09/May/2004
Pointers and Arrays, More Structures
5.4, 5.6, 5.7, 5.9, 6.2, 6.3
Lecture 8 Notes
Recitation 8 Notes
16/May/2004
Pointers to Structures, Pointers to Functions, Dynamic Memory
6.4, 6.5, 5.11, 7.8.5
Lecture 9 Notes
23/May/2004
Linked Lists, Strings
2.3, 5.5
Lecture 10 Notes
30/May/2004
Files, Command-line Arguments
7.5, 7.6, 5.10
Lecture 11 Notes
06/Jun/2004
Intro to Numerical Recipes
Lecture 12 Notes