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
>
>
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