# Triangular wave maple code example p:=2;g1:=x->x^2;g2:=x->signum(x)*g1(abs(x)); tw:=x->x-floor(x+1/2);f3:=x->g2(4*tw(x/4)); plot(f3(x),x=-5..5);