Problem using LIMIT()



Hi list!

I'm trying to do this simple limit calculation in Maxima, but I think it 
fails:

(C1) limit(atan(x)/(1/exp(1)-exp(-(1+x)^2)),x,inf,plus);
                                %E %I LOG(- 1)
(D1)                           --------------
                                      2

/* Since LOG(-1) equals %I*%PI, this should be the same as */

(C2) subst(%I*%PI,log(-1),%th(1));
                                     %E %PI
(D2)                              - ------
                                       2

/* But doing the calculation step-by-step */

(C3) limit(atan(x),x,inf);
                                      %PI
(D3)                                 ---
                                       2
(C4) limit(-(x+1)^2,x,inf);
(D4)                                MINF
(C5) limit(exp(-(x+1)^2),x,inf);
(D5)                                  0

/* shows that the solution should be:
 *
 * exp(1)*%pi/2
 *
 */

What's wrong here?

Thanks,

/DvL