fa=@(x) (2.*x.^3+3.*x.^2-6.*x+19)./(7.*x.^3-20.*x-5);  % define the function for part (a)-REMEMBER to use element-by-element operations (.*  ./  .^)
x=[-10 -100 -1000 -10000]; % define the vector x
for i=1:4
    disp(fa(x(i))); 
end    % calculate f(x) (No semicolon to see output)
syms x; % DO NOT CHANGE CODE ON THIS LINE
aLimit=limit(fa(x),x,Inf)  % No semicolon
disp('2/7=0.2857')
% Repeat the above process for part (b)
fa=@(x) sqrt(4*x^2+7*x+1)-2*x; 
x=[-10 -100 -1000 -10000];
for i=1:4
    disp(fa(x(i))); 
end    
syms x;
bLimit=limit(fa(x),x,Inf)
disp(7/4)







