[sympy] Function Composition

2014-12-13 Thread Dan Buchoff
What's the right way to compose a multivariate polynomial with a unary polynomial in an argument other than the first? A simple example is: f = (x, y) ↦ x + y g = y ↦ 2⋅y f composed with g = (x, y) ↦ x + 2⋅y I've tried substitution which doesn't seem to even give a valid polynomial (is a polyno

[sympy] A modest proposal for typed expressions

2014-12-17 Thread Dan Buchoff
This proposal is a little far-reaching, but I think it solves some real issues with the ease of use of refine and provides a reasonable way forward for typed symbols. The problem with refine is that: (1) It's wordy. Assumptions on symbols are succinct and easy. (2) It requires explicit invocatio

Re: [sympy] A modest proposal for typed expressions

2014-12-19 Thread Dan Buchoff
ps://github.com/sympy/sympy/issues/6751. > >> > >> OTOH, it is also often very useful to keep assumptions completely > >> separate from expressions, and we should not disallow that use-case. > >> > >> Also, I should point out that you can't use "