Question: Sum of recursive seq

I have this problem with the sum of a recursive seq: > restart; > with(student): > with(plots): Warning, the name changecoords has been redefined > a:=5.5*10^(-3): > R:=10*10^(-3): > d:=n-> ((-1)^n)*(R-(a^2)/(R+(-1)^(n-1)*d(n-1))): > d(0):=R: > afs:=seq(d(n),n=0..100): > q:=n->(-1*a*q(n-1)/(R+(-1)^(n-1)*d(n-1))): > q(0):=a*4*3.14*8.85*10^(-12): > lad:=seq(q(n),n=0..100): > sum(q(n)/(sqrt(y^2+(z-d(n))^2))/(4*3.14*8.85*10^(-12)), n=1..100); Error, (in q) too many levels of recursion How can I avoid this, is the syntax wrong? An additional question, if I want to plot the seq's how do I do this? I'm a bit over my head here when it comes to maple knowlegde. /Kristian
Please Wait...