Sorry, certainly, I shouldn't have picked x=2 for my limit (based on
the definition of f), but it doesn't work even if I pick x=1.5.

On Sep 22, 8:36 am, "D.C. Ernst" <ernst.tr...@gmail.com> wrote:
> Can anyone help me figure out how to use Sage to calculate limits for
> piecewise functions?  I've tried the obvious thing:
>
> f = Piecewise([[(0,1),x], [(1,2),x^2]], x)
> lim(f,x=2)
>
> However, this doesn't work.  Thanks.
>
> Dana

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to