Instructions:
1. Do not copy. We will not grade plagiarized assignments.
2. Publish the MATLAB script as PDF with all functions, outputs and plots included. You can also submit the livescripts.
3. Save the PDF file or livescript with “RollNo_ProbNo.pdf” or “RollNo_ProbNo.mlx”. DO NOT ZIP the files/folders. Upload EACH pdf/script in the Google Classroom.
4. Use of MATLAB intrinsic functions is not recommended unless otherwise mentioned in the problem. Anyhow you may use intrinsic functions to check your results.
5. If you have any query, please post your specific queries on the Google Classroom.
Problem 1.
A. Determine the multiple real roots of the given equation by
a) Graphically
b) Using Newton-Raphson method to within the tolerance of 0.01%
f (x) = 0.5x3 − 4x2 + 5.5x − 1
B. Determine the roots of following simultaneous nonlinear equations using the multiple Newton-Raphson methods. Employ initial guesses of x = y = 1.2
y =− x2 + x + 0.75
y + 5xy = x
C. Determine the roots of following simultaneous nonlinear equations using multiple Newton-Raphson method. Use a graphical approach to obtain initial guesses.
(x − 4)2 + (y − 4)2 = 5
x2 + y2 = 16
Problem 2.
Write Ma Ar(TAL)tA=Bt function which computes the trace of a given matrix.A The trace of a matrix is given by the sum of its diagonal elements. Test to make sure that is a square matrix.A
Problem 3.
Given matrix yAe=(56)ne*se(5−,o5). Use Gauss Elimination to find its inverse,−1.A Verify your answer using left division operator in AT LAB.M* A−1 =I .A And verify
Problem 4.
For the following system of linear algebraic equations:
a.The coefficient matrix,A can be written as A=L * U Lwhere is lower-triangular matrix and has onlyoneson its diagonal and U is upper-triangular matrix. Use Gauss Elimination (without pivoting) to find L.U and
b. Verify whether L * U=A, the original coefficient matrix.
c. Find determinant of A using Gauss Elimination (without pivoting). Show thatdet(L)*etU(L=)det(U)et(A*).d=d
d. Find the solution of the given set of linear algebraic equations using Gauss Elimination (without pivoting).
Problem 5.
Repeat 4a, 4b, 4c and, 4d using Gauss Elimination with partial pivoting. How many row interchanges has been made?
Problem 6.
Repeat 4a, 4b, 4c and, 4d using Gauss Elimination with scaled partial pivoting. How many row interchanges has been made? Compare the accuracy of P4, P5 and, P6.
Problem 7.
Hilbert matrix: Then x n Hilbert matrices are defined by H (i, j=) 1 /(+i)j,−1 ≤ i,j ≤ n.
a.Use this in a program that displays the Hilbert matrix of order-20 and check with the M H ilbc(o2m0)m.≫an=dh AT LAB
b. What is the condition number of the x Hilbert matrix2, 0 2200 .H
c. Solve system of equations using decomposition.U
d. Now solveH=x0[.99 0.99 ••• 0.99] .
Discuss the accuracy of the results.
Problem 8.
Using cMomATmLaAndB
build aitargid,diagonal matrix as followTs:
a nes(4, );≫=o1
b * o1nes(5, );≫= 5
c−nes(4, );≫=o1
≫=Td1 +ida+gd(a1,−)iag(b)iag(c, );
Write aLU decomposition function to factor the matrix .T Verify that* U .T=L
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme