Question: Exercise 5 (4 points) In this exercise you are given a polynomial and you will write a code that outputs an antiderivative of the polynomia.

 Exercise 5 (4 points) In this exercise you are given a

Exercise 5 (4 points) In this exercise you are given a polynomial and you will write a code that outputs an antiderivative of the polynomia. **Write a MATLAB function B=polit(P) which accepts as an input a polynomial P written through the standard basis (see Exercises 3 assigning a value 5 to an arbitrary constant. The output has to be a polynomial written through the standard basis as well. Do not use the MATLAB built in function int(P) in your code. Suggested commands within your code: syms x, sym2poly, poly2sym, length A single for loop can be used. **Type the function in your diary file **Run polint on the following polynomials. **Right after getting an output for polint function for each of the polynomials, run a MATLAB built-in function int(P) (with the constant term added to it) to verify your outputs. (a) P-6x5 +5x4 +4x3 +3x2 + 2x + 6, (b) P=x6-x4 +3x2 + 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!