John Paulo A. Archinue C.A.E Bsme 3B
John Paulo A. Archinue C.A.E Bsme 3B
John Paulo A. Archinue C.A.E Bsme 3B
Archinue
%Problem 1
x1=[-4:0.1:4];
fx1=0.6.*x1.^5 -5.*x1.^3 +9.*x1 +2;
plot(x1,fx1,'b')
x2=[-2.7:0.1:2.7];
fx2=0.6.*x2.^5 -5.*x2.^3 +9.*x2 +2;
plot(x2,fx2,'r')
C.A.E
BSME 3B
C.A.E
%Problem 2
x=[-10:0.1:10];
fx=(x.^2-x+1)./(x.^2+x+1);
plot(x,fx)
%Problem 3
fx=@(x) (0.01*x^5 - 0.03*x^4 + 0.4*x^3 - 2*x^2 - 6*x +5)
fplot(fx,[-4,6])
BSME 3B
%Problem 5
C.A.E
BSME 3B
C.A.E
x1=[-10:0.1:-1.1];
x2=[-0.9:0.1:2.9];
x3=[3.1:0.1:10];
y1=(x1.^2-5.*x1+10)./(x1.^2-2.*x1-3);
y2=(x2.^2-5.*x2+10)./(x2.^2-2.*x2-3);
y3=(x3.^2-5.*x3+10)./(x3.^2-2.*x3-3);
plot(x1,y1,'b',x2,y2,'g',x3,y3,'r')
%Problem 6
BSME 3B
%Problem 7
vs=12
rs=2.5
RL=[1:0.1:10];
P= vs^2.*RL./(RL+rs).^2;
plot(P,RL)
%Problem 8
C.A.E
BSME 3B
%Problem 9
C.A.E
BSME 3B
%Problem 12
C.A.E
BSME 3B
C.A.E
BSME 3B