%-------------------------------------% % Homework 5: 4.2 % % Date: 10/21/2002 % % % % Gun Srijuntongsiri % % gs61 % % ?????? % %-------------------------------------% % Variables: % t = free variable running from -9 to 9 % y = y(t) from the equation format compact % Suppress extra space b/w lines t = -9:.5:9 % vector of t's y(1:18)=3.*t(1:18).^2 + 5; % calculate y for negative t's y(19:37)=-3.*t(19:end).^2 + 5; % calculate y for nonnegative t's y % output y