Mul.flatten: remove special handling for C.exp thus refactoring o=b**e processing
commitda4ef7617aed3c2ea135a1ffa855f115e770df9c
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Sun, 10 Aug 2008 13:18:47 +0000 (10 17:18 +0400)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Sun, 10 Aug 2008 13:18:47 +0000 (10 17:18 +0400)
tree0b9f2b411e9cc5b5975c6d7ab4189560d3e55f55
parent73a7b69ada74ccb71df48b53605355b85def5d7d
Mul.flatten: remove special handling for C.exp thus refactoring o=b**e processing

Since we just reworked exp(x).as_base_exp() to return (E, x) there is no reason
to do special handling of C.exp in Mul.

This allows us to simplify the code, and speed it up a bit:

Timings (cache: off)
--------------------

    d = [x,y,z]

        %timeit     fem_test.py
        Mul(*d)

old:    270 µs      5.35 s
new:    253 µs      5.24 s

speedup: 6.7%        2%

Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Signed-off-by: Ondrej Certik <ondrej@certik.cz>
sympy/core/mul.py