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