Out of curiosity, how is F defined?

I don't know if this is the cause, but when I try something similar, I get 
a problem with y[n]: 'sage.symbolic.expression.Expression' does not support 
indexing. Since it's a different error, you're probably encountering 
something else.

john perry

On Thursday, February 7, 2013 8:29:03 AM UTC-6, Olajumoke Yetunde Fashomi 
wrote:
>
> 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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to