did so thanks!

On Jan 11, 4:45 pm, Aaron Meurer <[email protected]> wrote:
> Hi,
>
> Can you open an issue in our issue tracker for this?
>
> Aaron Meurer
>
>
>
> On Wed, Jan 11, 2012 at 3:42 PM, Robert <[email protected]> wrote:
> > heh there is a workaround...
>
> > max(a,b)  == (a+b-min(a,b))
>
> > In [51]: (sympy.Max(a, 1)*(a +2 - sympy.Min(a, 2)))
> > Out[51]: (a - Min(2, a) + 2)*Max(1, a)
>
> > works
>
> > however Min also appears to fail
> > In [58]: sympy.Min(a,3)*sympy.Min(a,4)
> > ...
> > TypeError: cannot compare sets using cmp()
>
> > On Jan 11, 4:29 pm, Robert <[email protected]> wrote:
> >> Hey everyone!
>
> >> I've found another bug related to my upgrading to .7.1.
>
> >> Max(a, 1)*Max(a,2) raises a strange error. Has anyone encountered
> >> this? I did a search in the group and the issues but it doesn't look
> >> to be noticed.
>
> >> In [34]: a=sympy.Symbol('a')
>
> >> In [39]: sympy.Max(a, 1)*sympy.Max(a, 2)
>
> >> ...
>
> >> TypeError: cannot compare sets using cmp()
>
> >> In [40]: sympy.Max(a, 1)*sympy.Max(a, 1)
> >> Out[40]: Max(1, a)**2
>
> >> appears to work however.
>
> >> For the time being can anyone think of a work around?
>
> >> Thanks,
> >> Rob
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sympy" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/sympy?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to