Elim Qiu on Sat, 30 Dec 2017 00:32:27 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

iteration and stack overfloow


I think this was posted a while before, but I don't really have a workable solution yet:

an(n) = 
{ my(v = 0.5);
  for(k=1,n,v=log(1+v));
  return(n*v)
}

call an(10000) will cause stack overfloow, but I'd like to computer an(700000).

What should I do? Thanks