Paper 1 Pract

Paper 1 : Practical

Laboratory: Credit-1

(The aim of this Lab is not just to teach computer programming and numerical analysis but to emphasize its role in solving problems in Physics.)

  • Highlights the use of computational methods to solve physical problems.
  • 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.

Syllabus

  • Introduction and Overview: Computer architecture and organization, memory and Input/output devices. Basics of scientific computing: Binary and decimal arithmetic, Floating point numbers, algorithms, Sequence, Selection and Repetition, single and double precision arithmetic, underflow and overflow emphasize the importance of making equations in terms of dimensionless variables, Iterative methods. Algorithm Errors and error Analysis: Truncation and round off errors, Absolute and relative errors, Floating point computations. Systematic and Random Errors, Propagation of Errors, Normal Law of Errors, Standard and Probable Error.
  • Review of C and C++ Programming: Introduction to Programming, constants, Variables and Fundamentals data types, Operators and Expressions, I/O statements, scanf and printf, cin and cout, Manipulators for data formatting, Control statements (decision making and looping statements) (If Statement, If else Statement, Nested If structure, Else If Statement, Ternary Operator, Goto Statement. Switch Statement. Unconditional and Condit ional Looping. While Loop. Do-While Loop. FOR Loop. Break and Continue Statements. Nested Loops), Arrays (1D and 2D) and strings, user defined functions, Structures and Unions, Idea of classes and objects.
  • Programs: Sum and average of a list of numbers, largest of a given list of numbers and its location in the list, sorting of numbers in ascending descending order, Binary search.
  • Random number generation: Area of circle, area of square, volume of sphere, value of π.
Reference Books:
  • Introduction to Numerical Analysis, S.S. Sastry, 5th Edn., 2012, PHI Learning Pvt. Ltd.
  • Schaum’s Outline of Programming with C++.J.Hubbard, 2000, Mc Graw–Hill Pub.
  • Numerical Recipes in C: The Art of Scientific Computing, W.H.Pressetal, 3rd Edn. 2007, Cambridge University Press.
  • A first course in Numerical Methods, U.M. Ascher and C. Greif, 2012, PHI Learning.
  • Elementary Numerical Analysis, K. E. Atkinson, 3rd Edn., 2007, Wiley India Edition.
  • Numerical Methods for Scientists and Engineers, R.W. Hamming, 1973, Courier Dover Pub.
  • An Introduction to Computational Physics, T. Pang, 2ndEdn., 2006, Cambridge Univ. Press.

Questions

2023 | +3-I-S-CBCS-Sc.(H)- Core-1-_Phy.-Pr-(R) | Full Marks-25

Answer any ONE question.
  1. Find the average of ten given numbers by means of a C-program.
  2. Write C-programs for stroing a set of ten numbers in ascending and descending order.
  3. Write a C-program to convert a whole number in decimal to the corresponding binary.
  4. Write a C-program for finding the largest and the smallest of a given set of numbers. (Ten numbers to be given)
  5. Write a Binary search program in C to find a number in a given sorted array of twenty numbers.
  6. Write separate programs to find all the even numbers and odd numbers in interval 1 to N. (Take N = 50 for even and N = 60 for odd).
  7. Write a program to find all the prime numbers in the interval 1 to N. Take N = 100 and check.
  8. Write a program to find the sum (a) $\sum_{n=1}^N n$ (b) $\sum_{n=1}^N n^2$
    For N =20 check by explict addition.
  9. Write programs to find the area and perimeter of a circle of given radius. Check for r=7 cm and r=14 cm by explict calculation.
  10. Write programs to find the face area, total surface area and volume of a cube.
  11. Write programs to find the surface area and volume of a rectangular parallelopiped.
  12. Write programs to find the surface area and volume of a cylinder of circular cross section.
  13. Write programs to find the surface area and volume of a sphere. Write another program to find the circumference of a great circle on the sphere.
  14. Write programs to find the GCF and LCM of a pair of numbers.
  15. Write programs to display as arrays the numbers, their squares and their cubes from 1 to 20.
  16. Write programs to find the squares of ten numbers and their sum of squares to be averaged.
  17. Find the rms value of a set of Eight decimal numbers by means of a C++ program.
  18. Write a program to find the volume of a sphere inscribed inside a cube of side & Write another program to find the difference between their surface areas.
  19. A cube of side & is converted into a sphere. Write a program to find the value of $\pi$ from a set of 5 readings for cubes of sides 1cm, 2cm, 3cm, 4cm and 5cm respectively taking $\pi=22/7$ for caluculation.
  20. From a give set of data for 10 observations on simple pendulum write a program to find value of $\pi$.

SCHEME PRACTICAL RECORD -5 Marks VIVAVOCE -5 Marks EXPERIMENT -15 Marks TOTAL - 25 Marks

Comments