use oddfun in integrals?



peculiar...

integrate((x-a)^2*sin(x-a),x,0,2*a);

asks about the sign of a.

declare(g,oddfun);
integrate(g(x),x,-a,a) --> no change.
integrate(g(x)*cos(x),x,-a,a) --> 0
integrate(g(x)*x^2,x,-a,a) --> 0

integrate( (x-a)^2*g(x-a),x,0,2*a)  --> no change.  [should be same as 
problem above].

R