UGC CBCS Mathematical Physics Lab: C & C++ Programming

Dear Readers, you know that most universities have some course on computer application under the course of UGC CBCS Mathematical Physics Lab for both undergraduate and postgraduate students of science stream.  These course typically include introduction to programming languages ( like C, C++ etc ), graphical presentation, statistical calculation of experimental data, numerical methods and presentation of scientific documents.

There are many excellent books available for learning programming languages and numerical methods. But I felt that none of these books serve the students of science well. The reasons behind this are the excellent books on languages are structured for more serious practitioners of the art and the science of programming.

On the other hand for the students of it is one of the subjects and more importantly their main objective is to learn the basic and immediately use them for getting their calculation done. They can not afford to devote a lot of attention and effort to learn the language in a more exhaustive way and then apply it to develop codes !! at least during their semester.

PhysBoy take initiative to represent UGC CBCS Mathematical Physics Lab in such a way that the students learn while they take one small step at a time and take a giant leaps when they feel more confident.

The aim of  UGC CBCS Mathematical Physics Lab-I is not just to teach computer programming and numerical analysis but to emphasize its role in solving problems in Physics.

Silent features of Mathematical Physics Lab-I

  •  UGC CBCS Mathematical Physics Lab Highlights the use of computational methods to solve physical problems
  • UGC CBCS Mathematical Physics Lab  will consist of lectures (both theory and practical) in the Lab
  • Evaluation done not on the programming but on the basis of formulating the problem
  • Aim at teaching students to construct the computational problem to be solved
  • Students can use any one operating system Linux or Microsoft Windows

# Mathematical Physics Lab Tutorial #

Introduction and Overview

Useful Links:

  1. Computer architecture and organization

  2. Memory 

  3. Input/Output devices

FREE pdf Download Links:

  1. INTRODUCTION & OVERVIEW CAPSULES PDF
  2. INTRODUCTION & OVERVIEW VIVA QUESTIONS & ANSWERS PDF
Basics of scientific computing

Useful Links:

  1. Binary and decimal arithmetic

  2. Floating point numbers

  3. Algorithms and Flowchart

  4. Sequence

  5. Selection

  6. Repetition

  7. single and double precision arithmetic

  8. Underflow & Overflow- emphasize the importance of making equations in terms of dimensionless variables

  9. Iterative methods

Errors and Error Analysis
  1. Truncation and round off errors

  2. Absolute and relative errors

  3. Floating point computations

C & C++ Programming

Useful Links:

Practice Set : C Programming Introduction Examples

  • cin and cout,

  • Manipulators for data formatting

  • Control statements (decision making and looping statements):
  1. If statement.
  2. If else Statement.
  3. Nested if Structure.
  4. Else if Statement.
  5. Ternary Operator.
  6. Go to Statement.
  7. Switch Statement.
  8. Unconditional and Conditional Looping.
  9. While Loop.
  10. Do-While Loop.
  11. For Loop.
  12. Break and Continue Statements.
  13. Nested Loops
  • Arrays (1D & 2D) and strings

  • User defined functions

  • Structures and Unions,

  • Idea of classes and objects