Hi Fernando, I believe that problem is that:

sage: min(x, y) x In your call the min is evaluated once for the symbolic variables x and y and then the values of x and y (which does not show up anymore) are plugged in for the plot. I have no idea if that's how min is supposed to work. In any case, a workaround is to use: sage: plot3d(lambda a, b: floor(min(a, b)),(x,1,7),(y,1,7)) Hope that helps, julian On Wednesday, September 25, 2024 at 5:42:24 PM UTC+3 fqgo...@colby.edu wrote: > Recently I was trying to get SageMath to plot something: > > plot3d(floor(min(x,y)),(x,1,7),(y,1,7)) > > The result looks like this: > > I checked, and it does seem that both floor(min(7,1)) and floor(min(1,7)) > are equal to 1, as they should be. But that's not what the plot shows. Any > explanations of what is happening? > > Thanks, > > Fernando > > > -- > ============================================================= > Fernando Q. Gouvea http://www.colby.edu/~fqgouvea > Carter Professor of Mathematics > Dept. of Mathematics > Colby College > 5836 Mayflower Hill > Waterville, ME 04901 > > Time is nature's way of making sure that everything doesn't happen at once. > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c09055cc-ff50-43b1-a5dc-c87873868290n%40googlegroups.com.