Anda di halaman 1dari 2

CSE330_Lab, Section-4

SET-A
Quiz#1, (SHA/RAR)
Name __________________________________________ ID:___________________

Time: 35 minutes || Total marks: 40

______________________________________________________________________________

1. Given a = 2.34, b = 3.7, c =3.95, d=7. Calculate the value of the following expressions:
[2*5=10 points]
𝜋
a. √2𝑎𝑐 − 4𝑐𝑜𝑠 2 + 𝑑!
𝑑
b. 5𝑏 3 − 𝑓𝑙𝑜𝑜𝑟 (𝑎) + 𝑟𝑜𝑢𝑛𝑑(𝑟𝑒𝑎𝑙(7 + 5𝑖))
2. Create a vector which are linearly spaced between 10 to 49 with 80 elements and define
the function y=[exp(t/15)cos(t)]/(t^3 +2) . Plot the function y and combine it by using
plot() [10 points]

3. Find the minimum of the roots of the polynomial equation 3X4 +4X2-19X-94 [5 points]

12 3 4
4. Given that A = [ 5 −4 3 ]. Show the dimensions of matrix A and the size of the
8 4 2
8 −5 4
largest dimension. [5 points]

5. Use fixed point iteration to solve f(x) = x2 − sin(x+ 0.15) . Use initial guess of x=0 as a
potential solution. Maximum number of iteration allowed is 100. Tolerance =.00001. [10
points]
CSE330_Lab, Section-4
SET- B
Quiz#1, (RAR/SHA)
Name __________________________________________ ID:___________________

Time: 50 minutes || Total marks: 40

______________________________________________________________________________

1. Given a = 2.54, b = 3.5, c =3.9, d=7. Calculate the value of the following expressions:
[2*5=10 points]
log(𝑎)∗log(𝑏)
a. + |(5 − 𝑑)|
exp(𝑐)
b. φ=∜16(2πb)

2. Create a vector which are linearly spaced between 1 to 25 with 50 elements and define
the function y=[exp(t/10)sin(t)]/(t^2 +1) ; Plot the function y and combine it by using
plot() [10 points]

3. Find the maximum of the roots of the polynomial equation X3 -14X2+61X-84 [5 points]

2 3 4
4. Given that A = [5 4 3]. Show the dimensions of matrix A and the size of the largest
8 4 2
dimension. [5 points]

5. Use fixed point iteration to solve f(x) = x2 − cos(x+ 0.15). Use initial guess of x=0 as a
potential solution. Maximum number of iteration allowed is 100. Tolerance =.00001. [10
points]

Anda mungkin juga menyukai