Hi,
I am trying to use the functionality of adding overlapping intervals from piecewise functions : >>> p1 = Piecewise ( (1,(0 <= x) & (x < 1)) ) >>> p2 = Piecewise ( (1,(0.5 <= x) & (x < 1.5)) ) >>> p3 = p1 + p2 >>> p3 <https://lh3.googleusercontent.com/-pxAuMOgwQ5M/V_T83Ke-aAI/AAAAAAAABWw/HoalrPP0Wak6-l5EVd7mvzrrFJsZOXDGgCLcB/s1600/e1.PNG> >>> p3._eval_interval(x,0,1.4) What I expect is : 0 < x <= 0.5 --> 1 0.5 < x <= 1 --> 2 1 < x < 1.4 --> 1 What I get is : 0 Can sympy Piecewise do this? Is this the right tool for the job? -- 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 https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/a93c299f-e660-4fb1-9701-4ac6d79cac37%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
