On Tue, Dec 01, 2015 at 07:09:10PM -0800, Andrey Grozin wrote: > вторник, 1 декабря 2015 г., 21:32:22 UTC+6 пользователь Sergey Kirpichev > написал: > > On Tue, Dec 01, 2015 at 01:22:19AM -0800, Francesco Bonazzi wrote: > > are you planning on eventually merge your fork back to SymPy? > In short (I doubt any other answer will survive > moderation in this group) - no. > > Why?
As I said before, not everyone is allowed to submit a PR. You can ask Ondrej Certik and co why. PS: https://groups.google.com/forum/?fromgroups=#!topic/sympy/xJNG-ocB5nw You can apply a particular transformation rule from the sympy/simplify/fu.py: In [10]: from sympy.simplify.fu import TR8 In [11]: TR8(cos(x)*cos(y)) Out[11]: cos(x - y) cos(x + y) ────────── + ────────── 2 2 Pattern matching in Sympy is not a useful thing in that sense, AFAIK it doesn't handle subexpressions. I.e. working example is: In [3]: a=Wild('a') In [4]: b=Wild('b') In [5]: c=Wild('c') In [6]: (z*cos(x)*cos(y)).replace(c*cos(a)*cos(b),c*(cos(a+b)+cos(a-b))/2) Out[6]: z⋅(cos(x - y) + cos(x + y)) ─────────────────────────── 2 -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/20151202090020.GA6475%40darkstar.order.hcn-strela.ru. For more options, visit https://groups.google.com/d/optout.
