1. Find the roots of the polynomial y = x3 - 3x2 + 2x using the command roots.

2. Evaluate the function

,

for x = -2 to x = -1 in steps of 0.1.

3. Debug the code which is supposed to set up the function f(x) = x3 cos(x + 1) on the grid x = 0 to 3 in steps of 0.1 and give the value of the function at x = 2 and x = 3.

4. Use the bisection method to determine the zero of the function f(x) = 2x2 - x3 + sinx between one and three. You will need to enter the codes bisect.m, mbisect.m and func.m. The code bisect.m does not need modification: however you need to change func.m to evaluate the function f(x) at a point x (again remember to use the dots in the correct place). You also need to change mbisect.m to reflect the fact that we are seeking a zero of the function defined in func.m in the range 1 to 3.

5. Using the Newton–Raphson method calculate the roots of the functions f(x) = xcosx - sinx and g(x) = (x3 - x)sinx. These should be done as two separate calculations. You will need to write two MATLAB functions for each case to evaluate the function and its derivative. These should be called func.m and func prime.m so that they can be called from Newton Raphson.m (alternatively you could change the line in Newton Raphson.m to reflect that you are using different function names).

6. Using the command roots calculate the solutions of the equations

x3 + x2 + x + 1 = 0 and - 2x + x5 + x2 = 4.

Here you need to be careful that the coefficients of the polynomials are entered correctly as vectors.

7. Perform these calculations both by hand and using MATLAB:

8. Calculate the product AB and BA for a variety of two-by-two matrices. Attempt to work out which matrices of the general form

A

commute with matrices of the form

B

(that is, which matrices does AB = BA hold for?). Verify that your answer is correct by trying some examples; the more obscure the numbers you use the more unlikely your result is not a fluke.

9. Show that for all square matrices A, the matrices B = A+AT and C = A - AT are symmetric and anti-symmetric respectively.

10. Solve the linear system of equations

x + y + 2z = 1

x - y - 3z = 0

-2x - 5y + z = 4.

using MATLAB

11. Given the matrices

A , B and C .

Calculate where possible A + B, AC, CB, (A - B)C and AC - BC. (using MATLAB)

12. Calculate the quantities

(i) (ii) . using MATLAB .

2. Evaluate the function

,

for x = -2 to x = -1 in steps of 0.1.

3. Debug the code which is supposed to set up the function f(x) = x3 cos(x + 1) on the grid x = 0 to 3 in steps of 0.1 and give the value of the function at x = 2 and x = 3.

4. Use the bisection method to determine the zero of the function f(x) = 2x2 - x3 + sinx between one and three. You will need to enter the codes bisect.m, mbisect.m and func.m. The code bisect.m does not need modification: however you need to change func.m to evaluate the function f(x) at a point x (again remember to use the dots in the correct place). You also need to change mbisect.m to reflect the fact that we are seeking a zero of the function defined in func.m in the range 1 to 3.

5. Using the Newton–Raphson method calculate the roots of the functions f(x) = xcosx - sinx and g(x) = (x3 - x)sinx. These should be done as two separate calculations. You will need to write two MATLAB functions for each case to evaluate the function and its derivative. These should be called func.m and func prime.m so that they can be called from Newton Raphson.m (alternatively you could change the line in Newton Raphson.m to reflect that you are using different function names).

6. Using the command roots calculate the solutions of the equations

x3 + x2 + x + 1 = 0 and - 2x + x5 + x2 = 4.

Here you need to be careful that the coefficients of the polynomials are entered correctly as vectors.

7. Perform these calculations both by hand and using MATLAB:

8. Calculate the product AB and BA for a variety of two-by-two matrices. Attempt to work out which matrices of the general form

A

commute with matrices of the form

B

(that is, which matrices does AB = BA hold for?). Verify that your answer is correct by trying some examples; the more obscure the numbers you use the more unlikely your result is not a fluke.

9. Show that for all square matrices A, the matrices B = A+AT and C = A - AT are symmetric and anti-symmetric respectively.

10. Solve the linear system of equations

x + y + 2z = 1

x - y - 3z = 0

-2x - 5y + z = 4.

using MATLAB

11. Given the matrices

A , B and C .

Calculate where possible A + B, AC, CB, (A - B)C and AC - BC. (using MATLAB)

12. Calculate the quantities

(i) (ii) . using MATLAB .

Assessment 4: Individual Essay (35%)Due Date: Week 11Word Count: 1800-2000 wordsStudents are required to choose one client group out of the following:Young PeoplePeople experiencing HomelessnessIndigenous...Do NOT utilise sources such as www.tutor2u. references for the purpose of your assignments. If to have met the requirements of the assessment.com and other such web materials as these in no way constitute...Global LogisticsJindal School of Banking and FinanceNovember 2023The assignment comprises of two questions with various sub-parts. You are required to submit your answers for every question. The submission...Portfolio:Written portfolio item 3 - Personal Practice Framework 2000 wordsPurposeTo demonstrate your ability to apply a comprehensive and unified framework to a professional situation.Steps1. Profile...Lab 8 Imaging InformaticsThe grade for this lab is 20 points instead of 10 points.Please follow these instructions to acquire the necessary dataset and metadata for your work:Visit the International Skin...Case Study 1Zainab is a 24-year-old law student. She grew up in Lakemba in New South Wales and moved to Glebe when she was 18. Zainab began a relationship with a fellow university student, Sam, when she...Q1 ML for Malware Analysis 25 PointsIn the week 7 lecture, we show example code of using 3 machine learning models to train and measure the performances on data in the form of feature vectors for 200 binaries...**Show All Questions**