ps5solnsW06

# ps5solnsW06 - %Engineering 6 Winter 2006 Problem 5.1...

This preview shows pages 1–2. Sign up to view the full content.

%(Polynomial exercises) %Suppress extra lines in output and set fixed short display format compact; format short; clc; %Clear command window and variables clear; %Part (a) a = [5 -11 0 6 -10]; b = [8 0 5]; disp( 'Part (a) results' ); disp( 'The coefficients of the product from the polynomial multiplication are:' ); c = conv(a,b); disp(c); disp( ' ' ); %Blank line %Part (b) [n d] = polyder(a,b); disp( 'Part (b) results' ); disp( 'The coefficients of the numerator of dF/ds are:' ); disp(n); disp( 'The coefficients of the denominator of dF/ds are:' ); disp(d); disp( ' ' ); %Blank line %Part (c) %Define numerator and denominator coefficient vectors n = [3 0 12 0 -23 34]; d = [9 13 4]; %Calculate quotient and remainder coefficients disp( 'Part (c) results' ); disp( 'The quotient and remainder coefficients for the polynomial division are:' ); [q r] = deconv(n,d) disp( ' ' ); %Blank line %Part (d) %Define roots vector r = [2 4.2 7.5 -2+7j -2-7j]; %Calculate the polynomial coefficients disp( 'Part (d) results' ); disp( 'The coefficients for the polynomial (given the roots) are:' ); e = poly(r); disp(e); %Find the roots of the polynomial defined by e disp(

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 5

ps5solnsW06 - %Engineering 6 Winter 2006 Problem 5.1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online