Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Low

New issue 2018 by smichr: terms vs factors
http://code.google.com/p/sympy/issues/detail?id=2018

When we are ready to break backward compatibility could we reverse the names of as_coeff_terms and as_coeff_factors and excise that wart from sympy? I expect as_coeff_factors to split apart a Mul (into coeff and *factors*) and to do nothing to an Add and vice versa for as_coeff_terms. But just the opposite is done

(2*x*y).as_coeff_factors() # has *factors* of 2, x and y
(0, (2*x*y,))

(2+3*x+y).as_coeff_factors() # has *terms* 2, 3x, and y
(2, (y, 3*x))

Though I doubt additional evidence is needed, I quote themathpage.com:

"When numbers are added or subtracted, they are called terms.
When numbers are multiplied, they are called factors."

Unless people have written low level stuff of their own that is not part of sympy, the change could be made ASAP. Otherwise, this can wait until we're ready to break backward compatibility for such work.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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