[sage-support] Re: How to construct piecewise in order to manipulate them?

2009-06-25 Thread David Joyner
I know multiplication is very finicky. You might try using R. = PolynomialRing(RR, "t") instead, but I'm not sure that will work either. Can you post more of your code so I can give a more detailed answer? On Thu, Jun 25, 2009 at 2:17 PM, David Sevilla wrote: > > Hi, > > I am trying to construct

[sage-support] Re: How to construct piecewise in order to manipulate them?

2009-06-26 Thread David Sevilla
Hi, On Jun 25, 9:12 pm, David Joyner wrote: > I know multiplication is very finicky. You might try using > R. = PolynomialRing(RR, "t") instead, but I'm not sure that will work > either. > > Can you post more of your code so I can give a more detailed answer? a = [-1, 0, 1.5, 3.2, 5] k = len(a

[sage-support] Re: How to construct piecewise in order to manipulate them?

2009-06-26 Thread David Joyner
I think one of your problems was that the definition of L2 was illegal since it ran into an out of range index problem. (In Python, all lists start at 0.) There may be better ways but, in any case, the following works. Note I had to change the definition of L2 so that you would not get an error: