Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-31 Thread AMiT Kumar
Thanks Harsh, I do have that PR in my TODO List. We need to consider output API (return type) also while replacing `solve` with `solveset` functions. I am working on that. AMiT Kumar On Saturday, January 31, 2015 at 1:10:28 PM UTC+5:30, Harsh Gupta wrote: > > > Currently solve and solveset, bot

Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-30 Thread Harsh Gupta
> Currently solve and solveset, both are dependent on the submodule inequalities.py (in solvers) for solving inequalities, which eventually also uses solve() You should replace the `solve()` in inequality.py with solveset_reals (solver for real equations). See https://github.com/sympy/sympy/issues

Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-30 Thread Aaron Meurer
That's probably a good thing. All algorithms should be eventually consolidated. Aaron Meurer On Fri, Jan 30, 2015 at 12:10 PM, AMiT Kumar wrote: > Forgot to mention: > Currently solve and solveset, both are dependent on the submodule > inequalities.py (in solvers) for solving inequalities, whic

Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-30 Thread AMiT Kumar
Forgot to mention: Currently solve and solveset, both are dependent on the submodule inequalities.py (in solvers) for solving inequalities, which eventually also uses solve(). On Friday, January 30, 2015 at 7:55:38 PM UTC+5:30, AMiT Kumar wrote: > > Yes, the new solveset always returns set & i

Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-30 Thread AMiT Kumar
Yes, the new solveset always returns set & it does support inequalities, and I have gone through the work of Harsh, I came to know there is still lot of work to do in solveset as mentioned by Harsh and on ideas page, I am working on it, I will soon come up with a new thread on what I plan to i

Re: [sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-29 Thread Aaron Meurer
I think the new solveset will always return a set object. I don't know if it supports inequalities yet, but we should focus on improving it, so that it can eventually replace solve(). Aaron Meurer On Sat, Jan 10, 2015 at 6:01 AM, AMiT Kumar wrote: > Yes, we can convert set Interval to Boolean o

[sympy] Re: Changing Inequality solver output API to set Interval (as_set())

2015-01-10 Thread AMiT Kumar
Yes, we can convert set Interval to Boolean object,using as_relational(). In [4]: Interval(0,1).as_relational(x) Out[4]: 0 ≤ x ∧ x ≤ 1 Thanks Sergey, for clearing the doubt. Cheers! Amit Kumar. -- You received this message because you are subscribed to the Google Groups "sympy" group. To