Perhaps the loosely connected components could be identified in some 
canonical way. #16225  <https://github.com/sympy/sympy/pull/16225>

On Wednesday, March 13, 2019 at 2:11:00 PM UTC-5, Aaron Meurer wrote:
>
> If you follow the StackOverflow links at 
> https://github.com/sympy/sympy/issues/11869 you can see some 
> suggestions on how to do this sort of thing. 
>
> Aaron Meurer 
>
> On Sun, Mar 10, 2019 at 12:56 AM Mark Juers <mpj...@gmail.com 
> <javascript:>> wrote: 
> > 
> > I'm a 4th-year PhD student in evolutionary biology at Indiana University 
> in Bloomington, IN. I've been using Python for about a year for various 
> biology projects and am working on a package related to my dissertation 
> work.  I am looking to replace Mathematica with SymPy in my workflow. I use 
> Git and Github for my research projects and for personal projects, 
> dotfiles, etc. as well. 
> > 
> > Now for my question. Suppose I have an expression like the following: 
> > 
> >         from sympy import * 
> >     var('a:d') 
> >     w = Wild('w') 
> >     test = a * (1 - c) + b * (c - 1) + d 
> > 
> > I'd like to rewrite test as (a - b) * (1 - c) + d 
> > I tried test.replace(a * w - b * w, collect(a * w - b * w, w)), but this 
> does not work. 
> > 
> > Many thanks in advance for your help. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sympy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sympy+un...@googlegroups.com <javascript:>. 
> > To post to this group, send email to sy...@googlegroups.com 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/e14dd72b-ddc3-4280-93a3-faa42af092a3%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b2fddcd9-6982-4e63-b01f-9080fc76d32a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to