Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions