Hi Dana, Sadly, piecewise functions lack a LOT of the functionality of more normal functions. They are one of the first ones to have been implemented, probably four years ago (?) and David Joyner deserves a lot of credit for having put them in! However, that means they are way behind the rest of Sage. Burcin Erocal has some ideas for how to get them into Pynac (our symbolic handler), but I don't think any of them have been put into practice yet. It would be a pretty big project, but (obviously) one well worth doing.
I bet that Maxima might have some way of doing it, for which you could use %maxima in the notebook. Try their documentation, and let us know! - kcrisman On Sep 22, 8:41 am, "D.C. Ernst" <[email protected]> wrote: > 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" <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
