I got it.  I see that I am not supposed to but limits in the plot
function.  The limits of the piecewise function provide that
information.

This works:

f1=x*e^x;
f2=x*e^(-x);
f=Piecewise([[(-5,0),f1],[(0,5),f2]]);
f.plot()

Chris

On Thu, Jul 10, 2014 at 8:42 AM, Chris Maness <ch...@chrismaness.com> wrote:
> I am not certain why this does not work:
> f1=x*e^(-x);
> f2=x*e^x;
> f=Piecewise([[(0,5),f1],[(0,-5),f2]]);
> plot(f,x,-5,5)
>
> Any suggestions?
>
> Thanks,
> Chris

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to