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 .

Mat 101Task 1Find the limit values:Task 2Find all vertical and horizontal asymptotes toTask 3Find the sums: ( b is to infinity)Task 4The concentration of an algae in the fjord varies periodically with...28 September 2022 at 12:39 amUnit name: Behavioural science = APA 7th edition Refereeing stylePsychology Research Report1,700 wordsTopic is to focus on emotions in general Different findings between anger...the seven segment display is not coming up in the circuit please correct the circuit and resend the proteus file with the working circuitI need it done as soon as possible pleasei just want to know how to apply the model using PML package in RIFN561: Enterprise Systems Lifecycle ManagementAssessment Task 2Assessment Task 2Task overviewAssessment name: Request for Proposal (RFP)Task description: The objective for this assignment is to build...ET 515 Exam #1Create a Power Point presentation explaining the process to change a tire on a standard automobile. Pretend your tire has gone flat and you must change the tire along the side of a deserted...**Show All Questions**