[Maxima-bugs] sin(%pi+%pi*x) doesn't simplify



Hi,

OK.  There was already a call to expand1 in the piargs code, which 
could cause it to take a long time (bug 1553866).  Removing this 
call to expand causes the following test cases from rtest9a.mac to fail:

declare(j,integer,e,even,o,odd);
done$
sin(x+(e+1/2)*%pi);
cos(x)$
sin(x+(o+1/2)*%pi);
-cos(x)$

Should we do that?

-Dan


On Sun, April 13, 2008 at 11:19PM, Stavros Macrakis wrote:
> Dan, thanks for working on this long-open problem.
> 
> But I'm afraid I have to agree with Harald that the syntactic solution
> is better. If the user wants to expand the contents of sin to discover
> the linear %pi term, he can always do an expand himself.... And Harald
> is right that Maxima avoids potentially very expensive operations in
> the general simplifier (consider e.g. sin((x-%pi)^500)).
> 
>           -s