Re: [sage-devel] problem/ possible bug with picewise constant functions

2016-04-21 Thread David Joyner
On Mon, Feb 16, 2015 at 8:46 AM, Pablo De Napoli wrote: > Hi, > > I'm having trouble with some piecewise constant functions. > > Suppose that I define > > f=Piecewise ([([0,1],0),([1,2],x-1)]) > > Then f.integral() works as expected, but f.derivative() will fail with > >

[sage-devel] problem/ possible bug with picewise constant functions

2015-02-16 Thread Pablo De Napoli
Hi, I'm having trouble with some piecewise constant functions. Suppose that I define f=Piecewise ([([0,1],0),([1,2],x-1)]) Then f.integral() works as expected, but f.derivative() will fail with TypeError: 'sage.rings.integer.Integer' object is not callable It seems that Sage does not