Comment #3 on issue 363 by smi...@gmail.com: split() method
http://code.google.com/p/sympy/issues/detail?id=363

(x+y+z).split('+') # = .as_two_terms()
(x, y+z)
(x+y+z).split('+', flatten=True) # = .args
(x, y, z)
(x+y+z).split('*') # Mul.make_args()
(x + y + z, 1)
(x+y+z).split('*', coefficient=True) # = .as_coeff_Mul()
(1, x + y + z)
(x/y).split('/') # fraction()
(x, y)
(x*y).split('/') # I don't like this one; I think it should be (x*y, 1)
(x, 1/y)
(x**2).split('**') # = .args
(x, 2)

Is there any interest in this? This could be a CodeIn project.

--
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