Karim BELABAS on Wed, 16 Apr 2003 14:59:22 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: printp()


On Mon, 14 Apr 2003, Igor Schein wrote:
> ? printp(x^2+1/(a+1)*x+1)
> (x^2 +
>    (1)
>
> ---------
>
>  (a + 1)
>  x + 1)
>
> Shouldn't printp() be renamed to printu(), as in "print ugly" ? :-)
> In all seriousness, I feel that either an effort should be made to
> make printp() reasonable in most generic cases, or it should be dumped
> altogether.  In either event, it's a low priority issue as far as I'm
> concerned.

I would dump it. I don't see how it can possibly be useful to anyone, and it
would kill a large block of useless code.

tex2mail behaves much more sensibly:

(14:55) gp > \o3
   output = 3 (external prettyprint)
(14:55) gp > x^2+1/(a+1)*x+1
      2     1
%1 = x  + -----x + 1
          a + 1

\b should use the external prettyprinter as well.

    Karim.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425   Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]