7.121 Bug in print(), Maple V.5 to Maple 8 (5.8.02)

7.121.1 Helmut Kahovec

7.121.1 Helmut Kahovec

There seems to be a bug in the print() function in all recent releases of Maple. print() does not make use of the continuation character when an expression has many closing parentheses:

> `evalapply/e`:=proc(X,Y) op(X)(op(X)(op(Y))) end proc: 
 
> expr:=e(e(e)(e))(e)(e):
 

The output of the following input statement is correct. I have added the continuation character `\` myself in order to make the output of lprint() more readable.

> lprint(expr); 
e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e\ 
(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(\ 
e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e\ 
(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(\ 
e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e\ 
(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(\ 
e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e\ 
(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e)))))))))))))))))))))))))))))))))))))))\ 
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))\ 
))))))))))
 

However, when expr is print-ed then many closing parentheses are missing when working with the worksheet interface version of Maple.

> expr; 
 
  e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e( 
 
        e(e(e(e(e(e))))))))))))))))))))))))))))))
 

It is correct in Maple V.3 (U. Klein)