Is there a way to suppress messages from tellsimp?



The reason you are getting these messages is because your pattern is 
very likely inadequate, and you should
consider a method to rewrite your pattern.
Without predicates, the pattern  aa+xx   can match ANYTHING.  In 
particular, for any expression E, we can have

aa=E, xx=0
aa=0, xx= E

only one of these matches will be attempted.  Which one depends on the 
internal structure of the expression aa+xx.

if there are predicates P and Q associated with aa and xx, they will be 
applied so that aa is bound to a sum of  terms that satisfy P
and xx is bound to a sum of terms that satisfy Q. If this accounts for 
all the term,s it is a match.

This has the peculiar semantics that the values bound to aa and xx may not
satisfy P and Q resp.,  just that each of the terms in each sum will 
satisfy the predicate.

My suggestion is that you write a function that partitions aa+xx in the 
way that you want it to be partitioned, and take that
task out of the hands of the pattern match compiler. Then you will not 
get a message.

I hope these comments help.


Richard Hennessy wrote:
> I get
>
> (%i1) load(pw)$
> Defining functions pw(L,x,[option]), (wx)pwplot?d(), (wx)pwdraw?d(), (wx)pwdraw(), pwdefint() and pwhelp().
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> aa+xx partitions `sum'
> (%i2)
>
> I would like to eliminate these messages which are coming from tellsimp and I think defmatch commands in pw.mac.  I tried 
> batchload(pw) but the same thing happens.  I tried searching the help text for the word "console" and "suppress" and checked out the 
> 30 - 40 matches but none were about suppressing console output.
>
> I think now it can't be done, but there should be a way.  Is this correct?
>
> Rich
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>