Did you set min and max to be variables? Can you try reset('min,max')
Things work fine for me:
sage: sage: import numpy as np
sage: sage: t1 = np.array([3+1])
sage: sage: t2 = t1[0]
sage: sage: t3 = 0
sage: sage: max(t2, t3)
4
sage: sage: min(t2, t3)
0
sage: version()
'Sage Version 4.4.2, Release Date: 2010-05-19'
(I have one or two patches on top of that, though)
Jason
I just reproduced the bug on sagenb.org and an almost-stock 4.4.2
running on linux. However, my stock 4.4.2 (OSX 10.6) (i.e., all patches
popped and sage -br run) still gives:
sage: import numpy as np
sage: t1 = np.array([3+1])
sage: t2 = t1[0]
sage: t3 = 0
sage: max(t2, t3)
4
sage: min(t2, t3)
0
Very curious! Maybe I have an updated spkg installed that is not
installed in 4.4.2. I think I have an updated maxima spkg installed,
for example.
Jason