Re: [sympy] Re: Help with aliasing assumptions

2014-09-19 Thread Aaron Meurer
On Fri, Sep 19, 2014 at 1:52 PM, Aaron Meurer wrote: > On Fri, Sep 19, 2014 at 9:20 AM, James Crist wrote: >>> it looks like in the first example that the expression is returned >>> directly while in the second case it is not(?) >> >> >> Ideally, for routines with one expr, `routine` and `routine

Re: [sympy] Re: Help with aliasing assumptions

2014-09-19 Thread Aaron Meurer
On Fri, Sep 19, 2014 at 9:20 AM, James Crist wrote: >> it looks like in the first example that the expression is returned >> directly while in the second case it is not(?) > > > Ideally, for routines with one expr, `routine` and `routine[0]` will be > identical. Not sure if this is possible, and I

Re: [sympy] Re: Help with aliasing assumptions

2014-09-19 Thread James Crist
> > it looks like in the first example that the expression is returned > directly while in the second case it is not(?) Ideally, for routines with one expr, `routine` and `routine[0]` will be identical. Not sure if this is possible, and I may decide that's too much magic. The main purpose behind

[sympy] Re: Help with aliasing assumptions

2014-09-19 Thread Chris Smith
The assumptions system will try to call `_eval_is_foo` if it exists for the object. So if you add definitions for ``_eval_is_integer` to your Routine object you can return the value of `is_integer` for the return value. I suspect there will be issues with how you define Routine, however, since i