Am trying to generate adomian polynomials using sage.This is what i have done:
var('y')
from numpy import *
from sympy import *
m=10
for n in range (m):
if n==0:
A(n)=F(y[n])
else:
a=(1/factorial(n))*(F(sum(l^n*y[n]))for n in range(m)).diff(n)
A(n)=subs(l ==0,a)
And it is giving me 'symbol getitem error'.
Please help.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.