Appendix G
Concurrent Versions System (CVS)
311
312
VII. C V S (CVS)
A Quick Introduction to CVS
Wolfgang Dobler
Revision: 1.25 , Date: 2005/11/28 22:32:29
Contents
1 What CVS does
2
2 Nomenclature
2
3 Getting help
2
4 Environment variables
3
5 A sample s
Intro to LaTeX
LaTex
A high quality document preparation system
R. Ouyed/Phys381
Latex
1
What is LaTeX
Markup language for documents
LaTeX compiles your document
You write. LaTeX typesets
Each letter/word/sentence/paragraph is a box.
LaTeX arranges the bo
Linux
The Linux operating system (OS) was first
coded by a Finnish computer programmer
called Linus Benedict Torvalds in 1991,
when he was just 21! He had got a new
386, and he found the existing DOS and
UNIX too expensive and inadequate.
In those days, a
Linear Systems
&
Matrix Analysis
Phys381
R. ouyed
R. Ouyed/Phys381
Linear Systems
In matrix form: A x = b
R. Ouyed/Phys381
CONTENT
The Game: Solving Ax = b
Gauss elimination
LU decomposition
Pivoting
Refinement
Jacobi Method
Gauss-Seidel Method
R. Ouyed/P
Appendix A
Fortran
A.1 Lineage
Fortran is one of the oldest programming languages still being used (and one of the oldest
at all), see Fig. A.1.
However, while being backward-compatible to Fortran 77 , the current versions Fortran
90 and Fortran 95 1 are
Appendix H
Codes
H.1 Codes for Chapter 1
precision 1.f
program precision1
real*4 s1(10000000), s2(10000000)
integer i, N
character*2 eps
write(6,*) "Enter precision"
read(5,*) eps
if (eps .eq. "sp") then
open(11,file="single_precision_sum.data",status="un
Appendix D
Mathematica
Mathematica is a computer algebra system, i.e. a computer program that can manipulate
analytic expresssions like algebraic or differential equations.
D.1 Getting started
To start the graphical interface to Mathematica, use the comma
Appendix E
LATEX
LATEX is a program to typeset text and mathematical formulae. The text is written in a normal
text file (usually the file name ends with .tex) with any text editor (for instance Emacs). In
addition to the text, a LATEX document contains a
Chapter 9
Random numbers and Monte Carlo methods
The name Monte Carlo comes from the city on the Mediterranean with its famous casino,
and a Monte Carlo calculation implies a statistical method of studying problems based on
the use of random numbers, simi
gnuplot
R. Ouyed/phys381
gnuplot
1
GnuPlot
www.gnuplot.info
A free GNU tool.
Supports 2D & 3D
Plotting.
Very feature rich.
Command line usage.
Great for quick and
dirty plots and text.
R. Ouyed/phys381
gnuplot
2
Basic Concepts
Console Window
Command line
Chapter 12
Partial differential equations
12.1 Classification
Partial differential equations are differential equations for functions f (x1 , x2 , . . . , xn ) of several variables. For linear equations of second order in two independent variables,
a
2 f
A Free Particle in one dimension
A free particle, as the name implies, is free of external forces or fields. A
free particle is an idealization, no system is truly isolated from external
influences.
However, in many situations the external forces that do
THE UNIVERSITY OF CALGARY
FACULTY OF SCIENCE
DEPARTMENT OF PHYSICS AND ASTRONOMY
PHYSICS 381 FINAL EXAMINATION
Instructor: Prof. Rachid Ouyed
April 14, 2015
Duration: 3 Hours
Number of pages in the exam sheets [including the 2 front pages]: 5
[Total: 100
Midterm
Computational Physics (Phys 381)
Rachid Ouyed
February, 24, 2015
Duration: 2 Hours
[Total: 100 marks including 20 marks for the report]
The latexed report is worth 20% of the total mark. Only well documented and neatly
presented reports will be w
Chapter 10
Optimization
Simulated annealing (SA) is one of the most widely used optimization techniques. The
SA method is essentially a random search that only uses the information obtained in the
previous iteration. In SA method, each point s of the sear
Chapter 11
Fourier Analysis
Brief intro: still in progress
Computing Fourier transforms using the Fast Fourier Transform (FFT) algorithm is a
standard tool in physics. There are many books and articles on Fourier theory and how
the FFT works. For brevity
Appendix C
Gnuplot
Gnuplot is a relatively simple tool to plot data and functions. It uses a simple command
language rather than a graphical user interface, which has the big advantage that one can
write Gnuplot script files that do very complex things an
Appendix B
Makefiles
How to compile and run programs with Fortran 90/95
Assume you have installed in your machine a
[other possible compilers are g95 and ifort].
In its simplest form all you need to type is:
gfortran (gnu) compiler.
> gfortran mycode.f90
University of Calgary
Physics 443: Quantum Mechanics I
Assignment #6
1.
Due Date: Monday, 12:00 p.m. March 4, 2013
Show that
x dp * ( p) i
p
( p)
Solution:
Start with the position space expression of the expectation value of position:
x * (x) x (x) dx
[1
Chapter 4
Interpolation/Extrapolation Techniques
4.1 Introduction
Often experimental results are available for selected conditions, but values are needed for
intermediate conditions. For example, the fall speeds of raindrops are measured for specific
diam
Physics 443
Quantum Mechnics I
N. Ahmadi
Office: SB525
Office Hours: 1:00-3:00 M or by appointment
Email: [email protected]
Course material is available on University of Calgary
Blackboard.
Marking
scheme
1. Assignments ( 10):
20%
2. Quizzes
15%
3.
Chapter 2
Linear Systems
2.1 Introduction
To solve the linear system Ax = b one can try several different algorithms. One is to find
the inverse of A and multiply both sides with it; this is computationally very expensive.
Another approach is to take a gu
Chapter 1
Numbers
1.1 Introduction
This section is a brief description of basic issues in floating-point arithmetic and computer
induced errors.
1.2 Bits and bytes
You might see an advertisement that says, This computer has a 32-bit Pentium processor
with