On Friday, February 12, 2016 at 6:45:20 AM UTC-8, João Alberto Ferreira 
wrote:
>
>
> Thank you for the sugestions but, unfortunatelly, the options above plot 
> the function as it was a continuous function. The only way I could find to 
> p lot the function correctly is as in 
> http://www.sagemath.org/calctut/continuity.html. But it ignores the 
> created piecewise function.
>
>
Yes, in my experience the only way of getting plots that are correct to the 
details, you need to basically do it "by hand". You can use access 
functions to automate the "by hand" procedure, though, so that at least 
you'll be able to get the desired plot for a whole class of objects. So as 
a start,

sum([f.plot(*i) for f,i in zip(g.functions(),g.intervals())])

basically gives you the implementation of the plot function for piecewise. 
Restricting the domain is an operation you'd have to implement separately 
(you can do it by taking appropriate min/max of the domain intervals). 
Whether you need open or closed dots isn't encoded in piecewise objects at 
the moment. In addition, the constituent functions could have 
discontinuities themselves, which would probably not get processed 
appropriately.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to