Semester : SEMESTER 5
Subject : Computational Physics
Year : 2021
Term : NOVEMBER
Branch : PHYSICS
Scheme : 2020 Full Time
Course Code : PHY 5B 06
Page:2
13.
14.
15.
16.
17.
18.
19.
20.
21.
12039
2 D 10681
Section B (Paragraph/Problem Type)
Answer at least five questions.
Each question carries 5 marks.
All questions can be attended.
Overall Ceiling 25.
Write a Python program to print the squares of the integer numbers within the range entered by
the user.
Discuss about different built-in operations on dist in Python with the help of examples.
Write a program to create two 3 x 3 matrices and add them.
The table below gives the temperature T (in °C) and length/ (in mm) of aheated rod. If / = ay + aT,
find the best value for ay and q, :
T Gn °C) : 20 30 40 50 60 70
1 Gn mm) | 800.3 800.4 800.6 800.7 800.9 801.0
Using Newtons forward interpolation formula obtain + (2), given that, y (1) = 24, y (3) = 120,
y (5) = 336, and y (7) = 720.
Explain the Bisection method for finding the solutions of algebraic equations.
Write a Python program to simulate the motion of a body dropped into a highly viscous medium.
(5 x 5 = 25 marks)
Section C (Essay Type)
Answer any one question.
The question carries 11 marks.
(a) Find y (0.2) for y' = (x —y)/2, y (0) = 1, with step length 0.1 using Runge-Kutta method.
(b) Write a Python program to simulate a two-dimensional projectile motion using Euler’s method
in a table.
(a) Explain the Newton-Raphson method to find the roots of a function.
(b) Write a Python program to simulate a freely falling body using Euler’s method in a table.
(1 x 11 = 11 marks)
12039