[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 wdjoy...@gmail.com wrote: I know multiplication is very finicky. You might try using R.t = 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,

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

[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.t = 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 Sevillasevil...@gmail.com wrote: Hi, I am