[sage-support] Re: Some frustrations with Piecewise()

2014-01-28 Thread Robert Jacobson
Thanks for the detailed reply, kcrisman. Yes, that first bit of code is now working for me, too. I'm not sure what I was doing wrong before. Given the temperamental nature of the current implementation of Piecewise(), I'm inclined to avoid it altogether. That prototype you pointed to, I see tha

[sage-support] Re: Some frustrations with Piecewise()

2014-01-28 Thread kcrisman
On Tuesday, January 28, 2014 8:29:16 PM UTC-5, Robert Jacobson wrote: > > I am having difficulty using Piecewise(). For example, I can define the > following: > t = Piecewise([[(-oo, -1), 0*x^0], [(-1, 0), 1+x], [(0, 1), 1-x], [(1, oo > ), 0*x^0]], x) > but then evaluating t(-100) fails. > Hmm,