programs

profilesaleh55
LogicGames_Tan_Corrected.m

%% Title %% Governing Equations % y (x) = tan(x) % range = -3pi/2 to + 3pi/2 %% Set range vector lowerlim = (-3/2) * pi ; upperlim = (3/2) * pi ; x = lowerlim : pi/100 : upperlim ; %% Determine y for each x y = tan(x) ; %% Remove values which are INSANELY large y = y .* (abs(y) < 1e10) ; % (...) equals 1 if reasonable, 0 if huge %% Plot Results plot (x,y)