Updates:
        Cc: smi...@gmail.com

Comment #3 on issue 2307 by asmeurer: Duplicate methods: as_coeff_mul and as_coeff_Mul
http://code.google.com/p/sympy/issues/detail?id=2307

There's a difference with how the handle Real coefficients:

In [1]: (4.0*x).as_coeff_mul()
Out[1]: (1, (4.0, x))

In [2]: (4.0*x).as_coeff_Mul()
Out[2]: (4.0, x)

If I change as_coeff_mul() to return (4.0, x), there are all kinds of failures. But there is only one place that uses as_coeff_Mul that needs the latter behavior (in _pi_coeff() in trigonometry.py). Any suggestions on how to emulate it?

Otherwise, this is working out nice. There were only four places in the code that were using as_coeff_Mul, and one of them really should have been using as_coeff_mul() (it was just splitting apart the args again).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to