bonjour,

j'ai une fonction période de 2pi suivante g=pi-x (pour x appartenant [0,pi])...

Je souhaite la tracer avec MAPLE 18, mais j'ai toujours une erreur.. où est-elle? l'erreur intervient seulement sur le rept... mais laquelle?

voici ce j'ai:

restart; with(plots); libname := libname, currentdir();

g := piecewise(-Pi <= x and x < 0, Pi+x, 0 <= x and x <= Pi, Pi-x);
piecewise(-Pi <= x and x < 0, Pi + x, 0 <= x and x <= Pi, Pi - x)


plot(rept(g, x = -Pi .. Pi), -2*Pi .. 2*Pi, color = red, thickness = 2);

Error, (in plot) procedure expected, as range contains no plotting variable


Merci,