On Sat, Dec 5, 2015 at 12:15 PM, Emmanuel Charpentier <[email protected]> wrote: > Closely related to this question, I have another : > > plot() seems to have no difficuty in plotting multivalued functions : > def racines(x): > return([-sqrt(x),sqrt(x)]) > plot(racines(x),(x,0,1)) > displays two half-arcs of parabola. > > plot3d() seems unable to to the same thing; > plot3d(racines(x+y),(x,0,1),(y,0,1) > creates (without error) an object of type <type > 'sage.plot.plot3d.parametric_surface.ParametricSurface'>, but trying to show > it ... shows nothing. > > Suggestions ?
Draw two plots and add them together: %var x, y plot3d(racines(x+y)[0],(x,0,1),(y,0,1)) + plot3d(racines(x+y)[1],(x,0,1),(y,0,1)) https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-12-05-130723-racine.sagews William > > -- > Emmanuel Charpentier > > -- > 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 http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- 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 http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
