Anthony Armstrong EET 1102 4202 Quiz 2

Anthony Armstrong EET 1102 4202 Quiz 2 - y2=((sin(x)).^2)/x

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

Anthony Armstrong EET 1102 4202 Quiz 2 1) >> A=[4,-2,-6;2,8,2;6,10,3]; >> B=[8;4;0]; >> ans=A\B ans =        -1.0698    1.3953   -2.5116 2) x=linspace(-5,2,3); y=(x.^3)+4*(x.^2)-x-4; plot(y) x=linspace(-5,2,4); y=(x.^3)+4*(x.^2)-x-4; plot(y)

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

View Full Document
x=linspace(-5,2,5); y=(x.^3)+4*(x.^2)-x-4; plot(y)
x=linspace(-5,2,6); y=(x.^3)+4*(x.^2)-x-4; plot(y)

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

View Full Document
x=linspace(-5,2,7); y=(x.^3)+4*(x.^2)-x-4; plot(y)
x=linspace(-5,2,101); y=(x.^3)+4*(x.^2)-x-4; plot(y)

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

View Full Document
3) x=[-2*pi:0.4:2*pi]; y1=sin(x)

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.

Unformatted text preview: y2=((sin(x)).^2)/x plot(x,y1,':',x,y1,'p',x,y2,'--',x,y2,'s'),xlabel('x'),ylabel('y'),title('Quizzicle'),legend('sin(x)','((sin(x)). ^2)/x'),grid on 4) >>A=[2,1,5;1,2,3]; >>B=[1,3,-1;2,1,4]'; >>A*B ans= 0 25 4 16 >>B*A ans= 4 5 11 7 5 18 2 7 7 >>A=[1,1;0,1]; >>B=[1,-3;0,1]; >>A*B ans= 1 -2 0 1 >>B*A ans= 1 -2 0 1...
View Full Document

This note was uploaded on 11/20/2010 for the course EET 1102 taught by Professor Staff during the Spring '08 term at CUNY City Tech.

Page1 / 8

Anthony Armstrong EET 1102 4202 Quiz 2 - y2=((sin(x)).^2)/x

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

View Full Document
Ask a homework question - tutors are online