Matlab
Matlab
6th Edition
ISBN: 9781119299257
Author: Amos Gilat
Publisher: WILEY CONS
bartleby

Videos

Textbook Question
Book Icon
Chapter 8, Problem 15P

Write a user-defined function that adds or subtracts two polynomials of any order. Name the function p=po1yadd(p1, p2, operation). The first two input arguments pi and p2 are the vectors of the coefficients of the two polynomials. (If the two polynomials are not of the same order, the function adds the necessary zero elements to the shorter vector.) The third input argument operation is a string that can be either ‘add’ or ‘sub’, for adding or subtracting the polynomials, respectively, and the output argument is the resulting polynomial.

Use the function to add and subtract the following polynomials:

f 1 ( x ) = 8 x 6 + 10 x 5 5 x 3 + 13 x 2 4 x 2 and f 2 ( x ) = 4 x 4 + 7 x 2 + 6

Blurred answer
Students have asked these similar questions
Express as a polynomial. (2u +3)(u - 4) ( 4u+u ) 2
find the values of a and b in simplest form
5 Write the following polynomials as coefficient vectors: 2x3-3x2 + x + 5 I 3x5+ x2-4

Chapter 8 Solutions

Matlab

Vector Components and Projections in 3-Dimensions; Author: turksvids;https://www.youtube.com/watch?v=DfIsa7ArxSo;License: Standard YouTube License, CC-BY
Linear Algebra 6.2.2 Orthogonal Projections; Author: Kimberly Brehm;https://www.youtube.com/watch?v=fqbwErsP8Xw;License: Standard YouTube License, CC-BY