0% found this document useful (0 votes)
28 views7 pages

Course Hand Out S3

Uploaded by

Ratheesh P M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views7 pages

Course Hand Out S3

Uploaded by

Ratheesh P M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

ECL 201 SCIENTIFIC


COMPUTING LABORATORY

COURSE HANDOUT: S3 Page 193


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

COURSE INFORMATION SHEET


PROGRAMME: APPLIED ELECTRONICS DEGREE: BTECH
AND INSTRUMENTATION
COURSE: SCIENTIFIC COMPUTING LAB SEMESTER: 3 CREDITS: 2
COURSE CODE: ECL201 COURSE TYPE: CORE
REGULATION: 2019
COURSE AREA/DOMAIN: ELECTRONICS CONTACT HOURS: 0+0+3 (LAB)
hours/Week.
CORRESPONDING THEORY COURSE CODE THEORY COURSE NAME:NIL
(IF ANY): NIL

SYLLABUS:
Sl.NO DETAILS HOURS
1 Familarization of the Computing Tool 3
2 Familarization of Scientific Computing 3
3 Realization of Arrays and Matrices 3
4 Numerical Differentiation and Integration 3
5 Solution of Ordinary Differential Equations 3
6 Simple Data Visualization 3
7 Simple Data Analysis with Spreadsheets 3
8 Convergence of Fourier Series 3
9 Coin Toss and the Level Crossing Problem 3
TOTAL HOURS 27

TEXT/REFERENCE BOOKS:
1 DIGITAL SIGNAL PROCESSING USING MATLAB by Vinay K. Lngle, John G. Proakis.
2 Digital Signal Processing Laboratory Using MATLAB by Sanjit K Mitra.

COURSE PRE-REQUISITES:
C.CODE COURSE NAME DESCRIPTION SEM
MAT 101 Linear Algebra and Calculus Theory 1
MAT 102 Vector Calculus, Differential Equations and Theory 2
Transforms

COURSE OBJECTIVES:
1 To translate the mathematical concepts into system design.
2 To familiarize with computing tools such as Matlab and Python
3 The experiments will lay the foundation for future labs such as DSPlab.

COURSE OUTCOMES:

COURSE HANDOUT: S3 Page 194


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

Sl. No. DESCRIPTION Bloom


Taxonomy
Level
CO1 Describe the needs and requirements of scientific computing and Knowledge
to familiarize one programming language for scientific computing (Level 1)
and data visualization.
CO2 Approximate an array/matrix with matrix decomposition. Understand
and Apply
(Level 2 &3)
CO3 Implement numerical integration and differentiation. Evaluate
(Level 5)
CO4 Solve ordinary differential equations for engineering applications Create
(Level 6)
CO5 Compute with exported data from instruments Apply&
Analyze
(Level 3& 4)
CO6 Realize how periodic functions are constituted by sinusoids Analyze
(Level 4)
CO7 Simulate random processes and understand their statistics. Apply &
Analyze
(Level 3 & 4)

CO – PO MAPPING
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
CO1 3 3 3 2 3 0 0 0 3 1 0 3 1 0 3
CO2 3 3 1 2 3 0 0 0 3 0 0 1 0 0 1
CO3 3 3 1 1 3 0 0 0 0 0 0 1 1 0 1
CO4 3 3 1 1 3 0 0 0 0 0 0 1 0 0 1
CO5 3 3 1 3 0 0 0 0 3 3 0 0 1 0 2
CO6 3 3 2 2 3 0 0 0 3 1 0 0 0 0 1
CO7 3 3 2 2 3 0 0 0 3 1 0 1 0 0 1

GAPS IN THE SYLLABUS - TO MEET INDUSTRY/PROFESSION REQUIREMENTS:


SNO DESCRIPTION PROPOSED RELEVANCE RELEVANCE
ACTIONS WITH POs WITH PSOs
1 Linear Convolution, circular Giving extra PO1, PO2 PSO3
convolution, modulation techniques lab classes

PROPOSED ACTIONS: TOPICS BEYOND SYLLABUS/ASSIGNMENT/INDUSTRY VISIT/GUEST


LECTURER/NPTEL ETC
TOPICS BEYOND SYLLABUS/ADVANCED TOPICS/DESIGN:

COURSE HANDOUT: S3 Page 195


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

SNO DESCRIPTION PROPOSED RELEVANCE RELEVANCE


ACTIONS WITH POs WITH PSOs
1 Study of OMAP L138 Extra Lab PO1, PO2 PSO1, PSO3
Development kit

WEB SOURCE REFERENCES:


1 http://media.sakshat.ac.in/NPTEL-IIT-Videos/default.aspx
2 rtsp:// 192.168.14.131/nptel_phase1/ece/subject_code/lect_no.mp4

DELIVERY/INSTRUCTIONAL METHODOLOGIES:
☐ CHALK & TALK ☐ STUD. ASSIGNMENT ☐ WEB ☐ LCD/SMART
RESOURCES BOARDS
☐ STUD. SEMINARS ☐ ADD-ON COURSES

ASSESSMENT METHODOLOGIES-DIRECT
☐ ASSIGNMENTS ☐ STUD. SEMINARS ☐ TESTS/MODEL ☐ UNIV.
EXAMS EXAMINATION
☐ STUD. LAB ☐ STUD. VIVA ☐ MINI/MAJOR ☐ CERTIFICATIONS
PRACTICES PROJECTS
☐ ADD-ON ☐ OTHERS
COURSES

ASSESSMENT METHODOLOGIES-INDIRECT
☐ ASSESSMENT OF COURSE OUTCOMES (BY ☐ STUDENT FEEDBACK ON FACULTY
FEEDBACK, ONCE) (TWICE)
☐ ASSESSMENT OF MINI/MAJOR PROJECTS ☐ OTHERS
BY EXT. EXPERTS

Prepared by Approved by
Dr. Poornima S Dr. Hari C.V.
(Faculty) (HOD)

COURSE HANDOUT: S3 Page 196


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

COURSE PLAN

SL.NO MODULE PLANNED

1 1 Familiarization of the Computing Tool

2 1 Familiarization of Scientific Computing

3 1 Realization of Arrays and Matrices

4 1 Numerical Differentiation and Integration

5 1 Solution of Ordinary Differential Equations

6 1 Simple Data Visualization

7 1 Simple Data Analysis with Spreadsheets

8 1 Convergence of Fourier Series, Coin Toss and the Level


Crossing Problem
9 1 Test

LAB CYCLE/ LIST OF EXPERIMENTS

1. Familiarization of the Computing Tool


a. Familiarization of a programming language – MATLAB
b. Familiarization of data types in the language used.
c. Familiarization of the syntax of different conditional statements.
d. Basic syntax and execution of small scripts
i. Write a program to compute the sum of the digits of an integer.
ii. Write a program to compute the factorial of an integer.
2. Familiarization of Scientific Computing
a. Functions with examples
i. Write a function to print the first N Fibonacci numbers and its sum
ii. Write a function to print the first N even numbers and its sum.
iii. Write a function to print the first N odd numbers and its sum.
iv. Write a function to compute the factorial of an integer.
b. Basic arithmetic functions such as abs, sine, real, imag, complex, sinc etc. using
bulit in modules.
c. Vectorized computing without loops for fast scienti_c applications.

3. Realization of Arrays and Matrices


a. Write a function to compute the eigen values of a real valed valued matrix (say
5 x 5). Run this code. Plot the eigen values and understand their variation.
b. Write a function to approximate a 5 x 5 matrix using its first 3 eigen values.
Run the code and compute the absolute square error in the approximation.
4. Numerical Differentiation and Integration

COURSE HANDOUT: S3 Page 197


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

a. Realize the functions sin t, cos t, sinht and cosht for the vector t = [0, 10] with
increment 0:01
b. Realize the function f(t) = 4t3 + 3 and plot it for the vector t = [-5; 5] with
increment 0:01
c. Write and execute a function to return the value of
-
∫(- 𝑒 (|*| 𝑑𝑡
5. Solution of Ordinary Differential Equations
a. Solve the first order differential equation
𝑑𝑥
+ 2𝑥 = 0
𝑑𝑡
with the initial condition x(0) = 1
b. Write and execute a function to return the numerical solution of
𝑑3 𝑥 𝑑𝑥
3
+ 4 + 2𝑥 = 𝑒 (* cos 𝑡
𝑑𝑡 𝑑𝑡
6. Simple Data Visualization
a. Draw stem plots, line plots, box plots, bar plots and scatter plots with random
data.
b. Plot the histogram of a random data.
c. Realize a vector t = [-10; 10] with increment 0:01 as an array.
d. Write and execute a program to display random data in two dimensions
as continuous and discrete plots.
7. Simple Data Analysis with Spreadsheets
a. Compute the mean and standard deviation of the signal. Plot its histogram
with an appropriate bin size.
8. Convergence of Fourier Series
a. The experiment aims to understand the lack of convergence of Fourier series.
b. Write the Fourier series of a traingular signal. Compute this sum for 10 and
50 terms respectively. Plot both signals on the same GUI.
9. Coin Toss and the Level Crossing Problem
a. Simulate a coin toss that maps a head as 1 and tail as 0.
b. Write and execute a function to toss three fair coins simultaneously. Compute
the probability of getting exactly two heads for 100 and 1000 number of
tosses

LAB QUESTIONS

1. Write a MATLAB program to find the factorial of a number.

2. Write a MATLAB program to find the sum of first N numbers

3. Write a program to compute the sum of the digits of an integer.

4. Write a MATLAB program to print the first N even numbers and its sum.

5. Write a MATLAB program to print the first N odd numbers and its sum

6. Realize the functions sin t, cos t, sinht and cosht for the vector t = [0, 10] with
increment 0.01

COURSE HANDOUT: S3 Page 198


DEPARTMENT OF APPLIED ELECTRONICS & INSTRUMENTATION

7. Realize the function f(t) = 4t3 + 3 and plot it for the vector t = [-5; 5] with
increment 0.01
8. Write a MATLAB program to compute the value of the function 𝑓 (𝑥 ) =
A ?@
< (
∫ 𝑒 @ 𝑑𝑥
√3> B

9. Write a MATLAB program to find the integral of the function 𝑓 (𝑡) = 4𝑡 3 + 3𝑡 + 2,


over the limit t= -2 to 2.
10. Write a MATLAB program to compute the derivative of the following functions:
sin t, cos t, sinht and cosht with respect to t, and plot the graphs.

SCIENTIFIC COMPUTING LAB ASSIGNMENT QUESTIONS– 26/09/2020

1. Write a function to print the first N Fibonacci numbers and its sum.
2. Write a function to print the first N even numbers and its sum
3. Write a function to print the first N odd numbers and its sum.
4. Write a function to compute the factorial of an integer.
5. Write a program to compute the sum of the digits of an integer.

COURSE HANDOUT: S3 Page 199

You might also like