Skip to main content
Open navigation menu
Close suggestions
Search
Search
en
Change Language, English
Upload
Sign in
Sign in
0 ratings
0% found this document useful (0 votes)
24 views
26 pages
CC8 (Python) P
Calcutta University python practical 2023
Uploaded by
misrajyotiraditya51
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save CC8(python)P For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
24 views
26 pages
CC8 (Python) P
Calcutta University python practical 2023
Uploaded by
misrajyotiraditya51
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Go to previous items
Download
Save
Save CC8(python)P For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
Go to next items
Download
1, (@) © (a¢4th Sim. -Physles-H/Pr/CC-BP/CBCS) (Syllabus-2019-20 & 2018-19)/Dap-1 2023 PHYSICS — HONOURS — PRACTICAL Paper : CC-8P (Syllabus : 2019-2020 and 2018-2019) Full Marks : 30 DAY-1| [Experiment : 20, Laboratory Notebook : 5, Viva voce : 5] ‘The heat equation in one dimension is given by K where u(x, 4) is the temperature function, Consider a wire of length 0
0. ux, 0)=x+sinx, OSxsm. Write a Python program to solve heat equation and plot the temperature distribution throughout the wire at 1= 10s. Take K= 1.0 unit, [Code : 10+ Plot : 2, Total : 12](2¢4h Sm)-Physes-H/P:ACC-BP/CBCS) (Syllabus-2019.20 & 2018-19)/Day-3 2. (a) Write a Python program to show the convolution of the following Gaussian functions is also a Gaussian : Plot the functions f(x), g(x) and the convoluted function on the same graph. Note:(fea)(0)= J Soe de [Code : 10+ Plot : 2, Total : 12] (b) Solve by using odeint package from SciPy. Take 1 € [0, 5] Exact solution : x(t) 3 4.2417 6403 +3¢0s4) @ Plot x(2) vs. ¢ and compare it with exact solution. Gi Plot © vs. [Program : 5 + Graph : 1+1+1, Total : 8](Z(dth Sm.)-Physis-H/Pr/CC-8P/CBCS!) (Gyllabus-2019-20 & 2018-19)/Day-3 3. (a) The number of surviving nuclei in a radioactive sample is given by : NO dt Write a Python program to solve this equati AN() to find the number of nuclei present after r= 20 years, if the sample had 104 nuclei at the beginning (¢= 0), Take = 6.93%10- year". Print the answer. Plot N(o) vs. # for tin [o 3. [Code : 8 + Plot : 2, Total : 10] (0) The Fourier expansion of a given function F(x) periodic over interval [-/, 7] can be written as 1 1 en 2 = ifreosn(F) ae =1,2,3, Write a program to compute the first five Fourier’s coefficients (a,, 6,) of a square wave. Plot the constructed series and the square wave signal in the same graph using matplotlib. Set appropriate axes labelling and legend at suitable location in the graph. [Program : 6 + Graph : (1+1)+(1+1), Total : 10](2¢4t Sm) “WPr/CC-SP/CBCS) Physics Mabus-2019-20 & 2018-19)/Day-3 4, (a) Write a program to solve 1d wave equation : instant 1(0 < ¢< 20). Label the axes and put appropriate legends in the graph. [Program 2 24(L+1), Total : 14] (©) Compute the integral Plot the integrand in the range x € [1.001, 2.0]. Label the axes and write the integrand as a legend inside the graph. [Program : 3+ Output : 1+ Graph : 1+1, Total : 6]o) (2(4th Sm.)-Physics-H/Pr/CC-8P/CBCS) Dirichlet Boundary conditions are : Left B. C. U(0,y)= for 0
0. Taking suitable values of «and 6, show that the convolution of these two Gaussians is also a Gaussian. Plot them. Note : (F* 20) J raee—ode [ora 7+ Geagh 2, Teal: 9]7. (@) © (2(4th Sm-Physics-H/PrICC-BPICBCS) (Shilabus-2019-20 & 2018-19)/Day-3 Consider the following forced harmonic motion : Px de Sa ttG thea Fessor ‘where the exact solution of the amplitude of the steady state, A=" __. Take y= 0. e-0%) +0? k=2 and F=1, Solve the differential equation by using odeint from SeiPy module. Plot the amplitude resonance curve, Compare with the exact formula. [Program : 7+ Graph : 2+1, Total : 10] ‘Compute the improper integral : 1 | aa Take the flowing contnatos of «and 6 al, b=2 oz, b= Plot the integrand vs. x for any set of (a, 5). (Program : 6 + Output : 1+1 + Plot : 2, Total :2023 PHYSICS — HONOURS — PRACTICAL Paper : CC-8P (Syllabus : 2019-2020 and 2018-2019) Full Marks : 30 DAY -4) [Experiment : 20, Laboratory Notebook : 5, Viva voce : 5] 1. (a) Consider a rod (length L) of uniform cross-section and made of homogeneous material which is . perfectly insulated so that heat flows only along the length. Two ends of the rod are inserted into ‘two ice baths to maintain fixed temperature at both the ends and of £0) =100 Consider the following 1D diffusion equation : BU(xt)_ PU(x1) ot x Using one initial condition and two boundary conditions, solve this partial differential equation and plot the temperature profile along the length of the rod with time. [Program : 10 + Graph : 2, Total : 12] (b) Evaluate the Integral for n=-3/2, 1/2, 1/2, 1, 3/2, 5/2. 1n)= fers" 0 [Program : 4+ Output : 4, Total : 8]2. (@) Suppose /(#) = €-* and g(0) = sin(b1), Taking suitable values of a and B, compute the convolution of the given functions. Plot f(0), g(#) and convoluted function. Note : Convolution over finite range: (f* 2X0 := | F(@g(¢-9a. 0 (Program : 8-+ Graph : 2, Total : 10) © Solve 2, £2, Aes BE =Coosor dt by using odeint package fiom SciPy, Take : A=12, B=0.2, C=1.8 and o= 1.5, ¢€ [0,15] @ Plot x vs. &. (i) Plot & Ws. t Label the axes and put appropriate legends in the graph. [Program : 7+ Graph : 14141, Total : 10](24th Sm.) Physies-H/Pr/CC-BP/CBCS) (Syllabus-2019-20 & 2018-19)Day-4 3. (@) The Fourier expansion of a given function F(x) periodic over interval [-/, 1] can be written as Fx)= ae 2 (% ooo), sn(%=)), =a, 12=0,1,2,3,.05 0 fi 1 where a,= i] Foe by i aa( OE if Fenn( n=1,2,3,.. Write a program to compute the first five Fourier’s coefficients (a, 5,) of a square wave. Plot the constructed series and the square wave signal in the same graph using matplotlib. Set appropriate axes labelling and legend at suitable location in the graph. [Program : 6 + Graph : (1+1)+(1+1), Total : 10] (b) An useful improper integral is fees () Using SciPy module, show the result for n=3, a= 1: frere > Gi) Such integrals are usually performed numerically by gradually increasing the upper limit to fa large value (say, 10), Plot the value of the integral : Ha)= [rede against the upper ° limit ‘a’. The plot must converge to the desired answer. [Code : 345+ Plot : 2, Total : 10]4. (a) b) (20 Sm.)-Physies-HPe/CC-8P/CBCS) (Spilabus-2019-20 & 2018-19)/Day-4 Write a program to solve Laplace’s equation on square grid Dirichlet Boundary conditions are : Left B.C. U(0,3)=0.0 for 0
You might also like
Python SciPy Practical Exercises
PDF
No ratings yet
Python SciPy Practical Exercises
6 pages
PHSM DSCC 7P - 2025
PDF
No ratings yet
PHSM DSCC 7P - 2025
9 pages
dscc-7 Day2
PDF
No ratings yet
dscc-7 Day2
3 pages
Python Physics Problem Sheet
PDF
No ratings yet
Python Physics Problem Sheet
3 pages
Emp Ii
PDF
No ratings yet
Emp Ii
9 pages
ODE Boundary Value Problems Assignment
PDF
No ratings yet
ODE Boundary Value Problems Assignment
5 pages
DSCC 7 Day III
PDF
No ratings yet
DSCC 7 Day III
3 pages
Python Computing for Physics Exams
PDF
No ratings yet
Python Computing for Physics Exams
3 pages
Cc8practical Python2022
PDF
No ratings yet
Cc8practical Python2022
6 pages
Computational II Unsolved
PDF
No ratings yet
Computational II Unsolved
9 pages
Numerical Solutions of Differential Equations
PDF
No ratings yet
Numerical Solutions of Differential Equations
8 pages
MSc Physics Practical Exam August 2023
PDF
No ratings yet
MSc Physics Practical Exam August 2023
4 pages
Ngwoh Meh Roy Python
PDF
No ratings yet
Ngwoh Meh Roy Python
10 pages
Python Code for Numerical Methods and Physics
PDF
No ratings yet
Python Code for Numerical Methods and Physics
2 pages
NumPy and Python Mathematical Operations Guide
PDF
No ratings yet
NumPy and Python Mathematical Operations Guide
3 pages
Scientific Computing Lab Assignment
PDF
No ratings yet
Scientific Computing Lab Assignment
10 pages
Python Assignment 3
PDF
No ratings yet
Python Assignment 3
4 pages
Python Applications in Mathematical Physics
PDF
No ratings yet
Python Applications in Mathematical Physics
11 pages
DSC-4 Mathematical Physics - II
PDF
No ratings yet
DSC-4 Mathematical Physics - II
5 pages
Sol ExamFM1115 2020
PDF
No ratings yet
Sol ExamFM1115 2020
14 pages
Fluid Mech
PDF
No ratings yet
Fluid Mech
2 pages
Center of Gravity and Function Evaluation
PDF
No ratings yet
Center of Gravity and Function Evaluation
6 pages
Solution Set
PDF
No ratings yet
Solution Set
35 pages
Calculus Integrals and Differential Equations
PDF
No ratings yet
Calculus Integrals and Differential Equations
3 pages
2019 - 01 - Final Math 4 Model Answer - DR - Magdy Elazab
PDF
No ratings yet
2019 - 01 - Final Math 4 Model Answer - DR - Magdy Elazab
6 pages
BSc Physics Honours: Computational Physics Syllabus
PDF
No ratings yet
BSc Physics Honours: Computational Physics Syllabus
5 pages
Introductory Computational Mathematics Exam
PDF
No ratings yet
Introductory Computational Mathematics Exam
3 pages
Computational Physics Assignment 1 Guide
PDF
No ratings yet
Computational Physics Assignment 1 Guide
1 page
Python Numerical Analysis Lab Tasks
PDF
No ratings yet
Python Numerical Analysis Lab Tasks
6 pages
Computational Physics Classtest 1 Guide
PDF
No ratings yet
Computational Physics Classtest 1 Guide
3 pages
MATB21 Project: Python Tasks Overview
PDF
No ratings yet
MATB21 Project: Python Tasks Overview
2 pages
Sol FM1115 FinalExam 2019
PDF
No ratings yet
Sol FM1115 FinalExam 2019
9 pages
E&C Maths Lab Notes
PDF
No ratings yet
E&C Maths Lab Notes
23 pages
Fourier Series Exercise Solutions
PDF
No ratings yet
Fourier Series Exercise Solutions
21 pages
VTU 2nd Sem Engineering Maths Lab Manual
PDF
No ratings yet
VTU 2nd Sem Engineering Maths Lab Manual
82 pages
SymPy Vector Calculus Operations
PDF
No ratings yet
SymPy Vector Calculus Operations
4 pages
Mathematical Physics II Exam Paper
PDF
No ratings yet
Mathematical Physics II Exam Paper
4 pages
MATH 3730 Computer Algebra Assignment 1
PDF
No ratings yet
MATH 3730 Computer Algebra Assignment 1
1 page
Lab Manual
PDF
No ratings yet
Lab Manual
49 pages
Python Graph Plotting for Functions
PDF
No ratings yet
Python Graph Plotting for Functions
105 pages
Spherical Tank Design and MATLAB Projects
PDF
No ratings yet
Spherical Tank Design and MATLAB Projects
8 pages
Solve 2nd Order DE with Sympy
PDF
No ratings yet
Solve 2nd Order DE with Sympy
3 pages
Gulshan EAD
PDF
No ratings yet
Gulshan EAD
20 pages
Analytic Function Calculation in Python
PDF
No ratings yet
Analytic Function Calculation in Python
2 pages
Second Order PDEs and Fourier Series Guide
PDF
No ratings yet
Second Order PDEs and Fourier Series Guide
12 pages
B.Sc Math Lab Manual: PDEs & Fourier Series
PDF
100% (1)
B.Sc Math Lab Manual: PDEs & Fourier Series
40 pages
Matlab CT2 PDF
PDF
No ratings yet
Matlab CT2 PDF
7 pages
VTU 2nd Sem Engineering Maths Lab Manual
PDF
No ratings yet
VTU 2nd Sem Engineering Maths Lab Manual
24 pages
Lab2 152SOLNS
PDF
No ratings yet
Lab2 152SOLNS
4 pages
Question Bank 2024-25
PDF
No ratings yet
Question Bank 2024-25
6 pages
Det Question Paper
PDF
No ratings yet
Det Question Paper
11 pages
Maths Assignment 4
PDF
No ratings yet
Maths Assignment 4
18 pages
Cse Math Lab
PDF
No ratings yet
Cse Math Lab
47 pages
Pade Approximations in MATLAB
PDF
No ratings yet
Pade Approximations in MATLAB
11 pages
Maths Lab: 20 Problem Solutions
PDF
No ratings yet
Maths Lab: 20 Problem Solutions
13 pages
Differential Equations and Transform Solutions
PDF
No ratings yet
Differential Equations and Transform Solutions
3 pages
Second Order PDEs and Fourier Series
PDF
No ratings yet
Second Order PDEs and Fourier Series
12 pages
Second Order PDEs and Fourier Series Guide
PDF
No ratings yet
Second Order PDEs and Fourier Series Guide
9 pages
Phy617 2026 hw01-1
PDF
No ratings yet
Phy617 2026 hw01-1
3 pages