[sage-support] ask.sagemath.org down ?

2024-09-25 Thread Emmanuel Charpentier
As of 2024-09-26 07:44:52 CEST, ask.sagemath.org doesn’t answer ; its host doesn’t answer ping : charpent@zen-book-flip:~$ ping ask.sagemath.org PING ask.sagemath.org (194.254.163.53) 56(84) bytes of data. ^C --- ask.sagemath.org ping statistics --- 35 packets transmitted, 0 received, 100% pac

[sage-support] Re: strange plot

2024-09-25 Thread Nils Bruin
On Wednesday 25 September 2024 at 08:34:09 UTC-7 julian...@gmail.com wrote: Hi Fernando, I believe that problem is that: sage: min(x, y) x It may be less than ideal, but given that "min" is a built-in function which by the looks of it just picks the first element from its argument such that o

[sage-support] Re: strange plot

2024-09-25 Thread julian...@gmail.com
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 ca

Re: [sage-support] strange plot

2024-09-25 Thread Dima Pasechnik
I can only say that Sage isn't properly geared to plot non-smooth functions. If you have such a piecewise-linear graph, it's probably better to split it into polyhedral pieces and plot them. On Wed, Sep 25, 2024 at 3:42 PM Fernando Gouvea wrote: > Recently I was trying to get SageMath to plot

[sage-support] strange plot

2024-09-25 Thread Fernando Gouvea
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 wha