function bai16
syms x;
a1= input(' Nhap a1: ');
b1= input(' Nhap b1: ');
c1= input(' Nhap c1: ');
d1= input(' Nhap d1: ');
e1= input(' Nhap e1: ');
a2= input(' Nhap a2: ');
b2= input(' Nhap b2: ');
c2= input(' Nhap c2: ');
d2= input(' Nhap d2: ');
A= a1*x^5 + b1*x^4 +c1*x^3 +d1*x^2 +e1*x;
B= cos(a2*x) +sin(b2*x) +1/tan(c2*x) +tan(d2*x);
disp('Cac nghiem cua bieu thuc A la:')
solve(A)
disp('Cac nghiem cua bieu thuc B la:')
solve(B)
subplot(1,2,1)
ezplot(A)
subplot(1,2,2)
ezplot(B)