I am programming a triangle wave.
My issue here, is that when I set the period from -2T, 2T I cannot plot it; an error appears:
Iteration limit of 4096 exceeded
f[x_] := 2 t /; 0 <= t < T/2;
f[x_] := 2 - 2 t /; t/2 <= t < T;
(*PERIOD*)T := 1;
Plot[f[x], {t, 0, T}];
(*this is the part were if I increase the fundamental period to be plotted I have an error "Iteration limit of 4096 exceeded."*)
f[x_] := f[t - T] /; t > T;
f[x_] := f[t + T] /; t < 0
T := 1;
Plot[f[x], {t, -T, T}]}
x_
tot_
on the left-hand sides fixes it here I think... $\endgroup$