0% found this document useful (0 votes)
0 views

Assignment 4 questions

numerical methods for analysis

Uploaded by

danielnavratil00
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Assignment 4 questions

numerical methods for analysis

Uploaded by

danielnavratil00
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

APSC 256 Numerical Methods for Analysis – Assignment 4

Submit your work in Canvas as a single PDF file

1. (0.3) Consider the relation 7sin(x)e–x = 1, where x is in radians.


a. Use the graphical method in a MATLAB script to plot the relevant function f(x). You can move all the terms of
7sin(x)e–x = 1 to the left- or right-hand side to build the nonlinear function f(x). Plot f(x) vs. x with x spanning from
0 to 4 and state an approximation of its lowest positive root. For this assignment, show the plot and
approximation of the root. You do not need to submit the MATLAB script.
b. Use the Newton-Raphson method in a MATLAB script, with an initial guess of 0.3, to approximate the lowest
positive root of the relevant function. For this assignment, show a table of approximate roots and approximate
relative errors for three iterations. You do not need to submit the MATLAB script.

2. (0.3) Solve the following set of linear equations using Gauss elimination with pivoting (and show all your steps):
10x1 + 2x2 − x3 = 27,
−3x1 − 5x2 + 2x3 = −61.5,
x1 + x2 + 6x3 = −21.5.

3. (0.4) Solve the following set of linear equations using Gauss elimination with pivoting (and show all your steps):
2x1 − 6x2 − x3 = −38
−3x1 − x2 + 7x3 = −34
−8x1 + x2 − 2x3 = −20

You might also like