The following comes from my current `lts` branch:
>>> var('A:C')
(A, B, C)
>>> i = Piecewise((A, x<1), (B, x>2), (C, True)).integrate(x); i # new
continuous result
Piecewise((A*x, x <= 1), (A + C*x - C, x <= 2), (A + B*x - 2*B + C, True))
>>> for j in range(0,6):
... j,i.subs(x,j)
...
(0, 0)
(
Here's the traceback.
Traceback (most recent call last):
File "solve_closed_form_static_level.py", line 17, in
print('Writing to disk complete.')
File "C:\Program
Files\conda\64bit\lib\site-packages\sympy\solvers\solvers.py", li
ne 1071, in solve
solution = _solve_system(f, symb
Can you give an example of old vs. new behavior? Are they mathematically
equivalent (up to pievewise constant)?
Aaron Meurer
On Tue, Jun 20, 2017 at 8:37 AM Chris Smith wrote:
> Currently, indefinite integration of Piecewise gives the discontinuous
> Piecewise result obtained by simply integrat