# Basic Computer Physics and Applications

Dates and timings: Friday and Saturday 01:00 PM – 03:00 PM (IST)

Starting date: Revision of prerequisites from 28 July 2019; new course material from 4 August 2019

__________________________________________________________________________________________________________________

**(Each lecture includes 2 hours time)**

**Revision Lectures: Introduction to course, flow charts and algorithm:**28 July 2020**Holiday: Rakshabandhan**: 3 August 2020**Lecture 1: First C program and introduction to simple calculations:**4 August 2020**Lecture 2: Decision making in c programming:**10 August 2020**Lecture 3: Exercise with decision making and introduction of for loop::**11 August 2020**Lecture 4: Introduction of while and do-while loops:**17 August 2020**Lecture 5: Exercise with loops in c programming**: 18 August 2020**Lecture 6: Break and continue statements and math library functions**: 24 August 2020**Lecture 7: User defined functions and recursion in c programming**: 25 August 2020**Lecture 8: Introduction to array**: 31 August 2020**Holiday: In respect of former president of India Pranab Mukharjee:**1 September 2020**Lecture 9: Problem analysis, examples of algorithms**: 7 September 2020**Lecture 10: Debugging syntax error and conversions of binary-decimal**: 8 September 2020**Lecture 11: Data representation**: 14 September 2020**Lecture 12: Error and rounding off numbers:**15 September 2020**Lecture 13: Electric field due to a system of point charges:**21 September 2020**Lecture 14: Different ways of using integers in c programming:**22 September 2020**Lecture 15: String processing**: 28 September 2020**Lecture 16: Goto statement and label in c programming**: 29 September 2020**Lecture 17: Functions and subroutine in c programming**: 5 October 2020**Lecture 18: Bessel and Legendre polynomials**: 6 October 2020**Lecture 19: Hermite and Laguerre polynomials**: 12 October 2020**Lecture 20: Bisection and regula falsi method**: 13 October 2020**Lecture 21: Newton Raphson Method**: 19 October 2020**Lecture 22: Lagrange interpolation**: 20 October 2020**Lecture 23: Matrix operations in c programming**: 26 October 2020**Lecture 24: Difference table in c programming**: 27 October 2020**Lecture 25: Best fit and spline interpolation**: 2 November 2020**Lecture 26: Quadratic spline interpolation**: 3 November 2020**Lecture 27: Integration using trapezoidal**: 9 November 2020 (*Deepawali vacations*)**Lecture 28: Simpson rules for integration**: 10 November 2020 (*Deepawali vacations*)**Holiday: Diwali Break**: 16 November 2020**Holiday: ...**: 17 November 2020Lecture 29: Euler and RK4 methods: 23 November 2020

Lecture 30: Matrix manipulation: 24 November 2020 (Not in syllabus directly)

Holiday: Guru Nanak Jayanti: 30 November 2020

No class: Electricity issues: 1 December 2020

No class: Electricity/internet issues: 7 December 2020

No class: Electricity issues: 8 December 2020

Lecture 31: Introduction and requirements to solve PDE: 14 December 2020 (No recordings)

Lecture 32: Numerical solution of PDE: 15 December 2020

No class: 21 December 2020

Lecture 33: Numerical solution of elliptical PDE: 22 December 2020

Holiday: Winter vacations: 28 December 2020

Holiday: Winter vacations: 29 December 2020

No class: PhD Course work exams: 4 January 2021

Revision: 5 January 2021 (No recordings)

Lecture 34: Parabolic and hyperbolic PDE: 11 January 2021

Discussion about remaining topics: 12 January 2021 (No recordings)

No class: Extra workload of morning lab classes: 18, 19 and 25 January 2021

Holiday: Republic day: 26 January 2021

Revision class: 1 February 2021 (offline)

No class: 2 February 2021

All recorded videos can be found in YouTube playlist. This is shared with students only.

Full board from 24 August to 5 October 2020: File shared as public. (Students can edit with this link)

Later version of board is connected with jamboard.

__________________________________________________________________________________________________________________

### Paper - IX: Basic Computer Physics and Applications

**Unit - I**

Algorithm development: Problem analysis, flow chart, decision tables; Examples of simple algorithms; Programme Design: Debugging syntax error, run-time error, logical error, programme verification and testing.

Data Representation: Representation of positive and negative numbers, fixed point representation, floating point representation. Arthmetic operations with normalized floating point numbers and its consequences, character representation, rounding off of numbers, abslute and relative errors, error detection and error correcting codes.

**Unit - II**

Programming Language C:

Numeric constants, declaring variable names, character data type; Arithmetic operators, hierarchy of operations, assignment statements, Input/output statements; Library functions, Elementary Programmes in C for numeric and string processing.

Conditional statements: relational operators; Arithmetic IF and Logical IF statements; Unconditional transfer: GO TO statement; Looping: DO loops, nested loops; Functions and subroutines; Sub-scripted variables: vectors and arrays; Writing and executing C programmes. Programmes in C to (i) compute magnetic field due to a current carrying coil (ii) compute electric field due to a system of point charges (iii) study frequency response of an LCR circuit (iv) Evaluate Bessel's function, Legendre function, Hermite Polynomial, Languerre's Polynomial by series expansion. Evaluation of simple functions by Taylor Series Expansion.

**Unit - III**

Iterative Methods: Solution of algebraic and transcendental equations using bisection method, method of false position, Newton-Raphson method; Complex zeros, zeros of polynomials; Simple applications related to Physics like programmes in C to evaluate zeros of simple functions.

Interpolation: Lagrange interpolation, Difference tables, truncation error in interpolation, Spline interpolation.

**Unit - IV**

Least Square Approximation: Linear regression, Polynomial regression, fitting exponential and trigonometric functions, approximation of functions by Taylor' series and Chebyshev polynomials, curve fitting and polynomial fitting, Programmes in C related to physics on above topics.

Numerical Integration: Trapezoidal rule, Simpson's rule, errors in integration formulae, Gaussian quadrature formulae. Programmes in C related to physics on above topics.

**Unit - V**

Numerical Solution of Ordinary differential equations: Taylor's method, Euler's method and Runge-Kutta methods; Programmes in C related to physics on above topics.

Numerical Solution of Partial Differential Equations

Finite Difference methods for solution of (i) The diffusion equation (ii) the wave equation and (iii) the Laplace equation; Programmes in C related to physics on above topics.

Reference Books:

Computer Science, R. Dheen Dayalue (Tata McGraw Hill)

Computer System Architecture, Morris-Mano (Prentice Hall of India)

Computer Oriented Numerical Methods, V. Rajaraman (Prentice Hall of India)

Mathematical Methods, Potter and Goldberg (Prentice Hall of India)

Computational Methods for Partial Differential Equations, M.K. Jain, S.R.K. Iyenger, R.K. Jain (New Age International)

Numerical Methods for Engineers by Steven C Chapra and Raymond P. Canale (McGraw Hill)