Translated code and simplification of %pi in presence of numer=true



On Dom, 2009-04-19 at 18:58 -0500, Barton Willis wrote:
> The %e --> 2.718 conversion seems to happen inside simptimes, not
> simplifya.
Hi,
whoever works on solving this problem, please keep in mind that there
are other irrational constants that should behave as %e and %pi:

MAXIMA> (defun $f (x) (mul x '$%pi))

MAXIMA> (defun $g (x) (mul x '$%e))

MAXIMA> (defun $h (x) (mul x '$%phi))

(%i5) [%pi, %e, %phi], numer;
(%o5)    [3.141592653589793, %e, 1.618033988749895]

(%i6) [f(2), g(2), h(2)], numer;
(%o6)            [2 %pi, 5.4365635, 2 %phi]

Regards,
Jaime