The essence of the course is the application of numerical methods using computers to study physical problems. The course emphasizes these physical problems and focuses primarily on the following sequence: physical problem $\rightarrow$ mathematical description $\rightarrow$ numerical method $\rightarrow$ algorithm $\rightarrow$ software implementation $\rightarrow$ analysis of the obtained results. This approach is applied systematically throughout all covered topics.
The physical problems discussed in the course address fundamental questions of interest to undergraduate students and include topics from: optics, astrophysics, solid-state physics, electrical circuits, mechanics, signal processing, and other areas of physics.
The following numerical methods are covered:
Methods for the summation of series.
Root-finding methods for single non-linear equations.
Data interpolation and extrapolation.
Curve fitting (approximation) methods.
Methods for finding the extremum of a function of one variable.
Numerical differentiation methods.
Numerical integration methods.
Methods for solving systems of linear equations.
Methods for matrix inversion and calculating determinants.
Methods for finding eigenvalues and eigenvectors of symmetric matrices.
Fourier series expansion of periodic functions.
The Fourier Transform.
Discrete and Fast Fourier Transforms (DFT and FFT).
The core elements of programming covered include:
Stages of writing a program, machine language, assembly language, high-level languages, and the concepts of translators, compilers, and interpreters.
Basic elements of a program, characters/symbols, and data types.
Built-in (intrinsic) functions.
Control structures and statements: sequence structures, decision-making structures (e.g., if-then-else), and loop structures (e.g., do loops and similar).
Input/output (I/O) operations.
Arrays and array operations.
Subroutines (functions/procedures) and their usage.
In the process of applying numerical methods with computers, students practically learn to use the various elements and structures of the programming language. Lectures, assignments, and various supplementary materials are uploaded to the faculty’s website.
Mathematics, as studied in the mandatory courses in Mathematical Analysis and Linear Algebra; physics, within the scope of the general courses in Mechanics, Molecular Physics, and Electricity and Magnetism. Some of these courses are taught concurrently with this one.
Upon completion of the course, students will know and be able to use the programming language elements specified in the course description. Those who successfully complete the course will be capable of applying the listed numerical methods in their work as physicists to solve specific physical problems.
Evaluation method
Topics for preparation
1. High-level languages. Stages of implementing a program written in a high-level language. General structure of a program.
2. Basic data types and how to store them in the computer’s memory. Arithmetic with integers and arithmetic with real numbers. Order of calculation of expressions. Rounding error and machine epsilon.
3. Logical expressions, logical relations and logical operators. Branching structure of the if-then-else type.
4. Loops and loop operators.
5. Arrays and working with them.
6. Modular principle for creating a program. Subroutine procedures: structure and interaction with the main program.
7. Subroutine functions: structure and interaction with the main program. Passing subroutines as arguments to other subroutines.
8. Input-output operations. Reading data from a file and writing data to a file.
9. Binding energy of ionic crystals. Madelung constant. Eugen’s method for calculating the Madelung constant. Interruption errors.
10. Relic radiation. Numerical solution of nonlinear equations – problem statement. Bisection method.
11. Secant method and Newton’s method for finding the root of a nonlinear equation.
12. Golden section method for finding a minimum.
13. Numerical differentiation. Formulas for the first and second derivatives.
14. Calculation of the motion of a pendulum at large deviations from the equilibrium position. Elliptic integrals. Elementary algorithms for numerical integration: trapezoidal method and rectangular method.
15. Simpson and Newton-Coates formulas for numerical integration. Adaptive procedures.
16. Gaussian quadratures.
17. Monte Carlo method for solving integrals.
18. Problems of numerical methods of linear algebra – general overview. Gauss’s method for solving systems of linear equations. Partial and complete selection of a principal element.
19. Geometric interpretation and matrix formulation of the problem for a system of linear equations. Conditionality number and ill-conditioned matrices.
20. Gauss – Jordan method. Method of decomposition of upper and lower matrices.
21. Finding the eigenvalues of tridiagonal matrices.
22. Fourier series. Conditions for the development of a function in Fourier series. Fourier transform.
23. Properties of the Fourier transform. Convolution. Using the properties of convolution to find the input signal.
24. Correlation. Examples of using correlation. Using autocorrelation to recover a signal from a background of strong noise. 25. Discrete Fourier transform. Nyquist formula. Fast Fourier transform.