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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/91c0ba72-2526-4f17-a744-fcfe8d8befdf%40colby.edu.
Hi Fernando,
I believe that problem is that:sage: min(x, y)x
Thanks for the answers! Both
plot3d(floor(min_symbolic(x, y)),(x,1,7),(y,1,7))
and
plot3d(lambda a, b: floor(min(a, b)),(x,1,7),(y,1,7))
produce the right plot.
I wonder whether the result of ?min might mention the existence of min_symbolic, and similarly for max. When the first attempt failed, I looked at what ?min said, and didn't get much out of it. Had it mentioned "see also min_symbolic" or something of the kind, that would have been a clue.
Fernando
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/fa9069b8-b7c7-4ef8-89b6-49e440673e55n%40googlegroups.com.
-- ============================================================= Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
Carter Professor of Mathematics Dept. of Mathematics Colby College 5836 Mayflower Hill Waterville, ME 04901 To consider persons and events and situations only in the light of their effect upon myself is to live on the doorstep of hell. -- Thomas Merton
I wonder whether the result of ?min might mention the existence of min_symbolic, and similarly for max. When the first attempt failed, I looked at what ?min said, and didn't get much out of it. Had it mentioned "see also min_symbolic" or something of the kind, that would have been a clue.