You are on page 1of 1

Monsoon 2020

CSE602: Computer Problem Solving


LAB– 09
Date: 09/11/2020
Instructions
1. Create a folder named <Name_Rollno_Lab9>, and save all the python programs as per the
question numbers in this folder. For example: Q1.ipynb, Q2.ipynb, Q3.ipynb, etc.
2. The <Name_Rollno_Lab9>.tar.gz or .zip of the above folder should be uploaded on Moodle.
3. File and folder names should be followed strictly as mentioned in the questions
below (including case sensitivity).
4. Read all the questions carefully before you start answering them.
5. Post doubts if any in doubts forum on Moodle

Questions:

1. From the given matrix M,

−1 2 0 4
4 −0.5 6 0
𝑀= [ ]
2.6 0 7 8
3 −7 4 2
Output the following:
a. List of all minors of M
b. Cofactors of M
c. Rank of M

2. Write a program that takes a list of complex numbers and computes a list of their
magnitudes (i.e. sqrt(a.real**2 + a.imag**2)).

3. Write a python function named union to return the union of two sequences.
Note: If a value appears multiple times in the input arguments, it should occur only once
in the return value. From the main program use this function to print the union of "abcd"
and ('e','f','g','h').

You might also like