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
To
:
pari-users@pari.math.u-bordeaux.fr
Subject
: iteration and stack overfloow
From
: Elim Qiu <
elim.qiu@gmail.com
>
Date
: Fri, 29 Dec 2017 16:32:19 -0700
Delivery-date
: Sat, 30 Dec 2017 00:32:28 +0100
Dkim-signature
: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XokjsLl69Ych0vuLEOVD/6jftphruaqpPFdyicZGY2U=; b=tBCGmBm6xxZCb9iOBGKoQTfejZk/baRJxJrY3xZv6VmR5xo4HYCDe6pvvpXBdlRY5h GWgEIrjbVUtIntmd/aduFfoKeTVzGTYLMm30cjYTvjJB9UqiKryoBiTvDLd7nx6rHlMp gy8wQpm8lCpdD5WSU83MiDX+mwjJJA2uxB0TlWantLFXhlU+vU8yMyso096ohwgbdS3D aT+5tkcBfEbFpr9HMq52lWlkLaLdVBjsu8T7xn6ccx4FCfJ8fUc2+nwv+m0TSCmEnhbh pNNKaco1cIwjfknbiN4oXsbHNKXPAE/7LpqQ3WHCiX0syFJSkdv0teDcNDvUAhKlzSJ8 RCiA==
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
Follow-Ups
:
Re: iteration and stack overfloow
From:
Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
Prev by Date:
Re: Arity transfer from built-in function ?
Next by Date:
Re: iteration and stack overfloow
Previous by thread:
Re: Arity transfer from built-in function ?
Next by thread:
Re: iteration and stack overfloow
Index(es):
Date
Thread