On Tue, 16 Feb 2021 at 07:34, Sayandip Halder <[email protected]> wrote: > > On Tuesday, February 16, 2021 at 5:21:21 AM UTC+5:30 Oscar wrote: >> >> It might make more sense to fix these things in solveset and then make >> use of solveset in solve rather than trying to fix things in solve >> itself. > > There are many instances where solveset() will return a range. Consider this: > p = Piecewise((0, x < -1), (x**2, x <= 1), (log(x), True)). > Solveset will return an Interval for the region x<-1. If we use solveset in > solve, then the behaviour of solve will change.
Currently solve gives an error for that case: NotImplementedError: solve cannot represent interval solutions If solve were to use solveset then it could just check for an interval and raise the same error. -- Oscar -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxQjsAnoqoTn5-aYLCNNwwEkVb-gVsKfku1L7nkPKVd3dA%40mail.gmail.com.
