bug in trigsimp?



Probably this is a much deeper problem having to do with declarations, 
binding of parameters, scope..

presumably there is a definition  trigsimp(x):= ...
which is incompatible with your  declare().

But if the name x  were not used,  but something more obscure like 

trigsimp(_xx_):=

then it would conflict with  declare(_xx_, constant).

Should binding of  x  create a "new" x with different properties (like 
constantp?)

I think this gets us into a debate known as  the Lisp-1 vs Lisp-2 
controversy.
In the short term, don't declare x to be a constant.
RJF


Robert Marik wrote:
> Hello, is this a bug in trigsimp?
>
> Robert Marik
>
> Maxima 5.17.1 http://maxima.sourceforge.net
> Using Lisp CLISP 2.44.1 (2008-02-23)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) declare(x,constant);
> (%o1)                                done
> (%i2) trigsimp(y);
> Improper parameter in function definition for trigsimp:
> x
> #0: trigsimp(?_l=[y])(trgsmp.mac line 70)
>  -- an error.  To debug this try debugmode(true);
> (%i3)
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>