On Thursday, February 11, 2016 at 11:32:45 AM UTC-8, João Alberto Ferreira wrote: > > 1) Isn't there a way to pass to the Piecewise function if the intervals > are open or closed at its borders, so as, in the example above, g(x) could > be evaluated to 25 instead of 35/2? >
It doesn't seem to be possible at the moment. The averaging behaviour is hard-coded. > 2) Cant't I plot a Piecewise function with intervals extending to > infinity, as the example above, by just indicating (maybe in the plot > method) the definite interval that I wish to be used to evaluate and plot > the function? For the graph of a Piecewise function, I would expect > something like the examples in > http://www.sagemath.org/calctut/continuity.html, with the hollow and > filled circles indicating if the intervals are open or closed at its > borders. > You can use plot(lambda x: g(x), 0, 10) or plot(g.__call__, 0, 10) -- 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 post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.