Bill Allombert on Wed, 25 Sep 2013 16:40:27 +0200


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

Re: Zeta() changes in recent versions?


On Mon, Sep 23, 2013 at 09:51:57PM -0700, Andrew Walker wrote:
> ? gettime;pz(0.1+10*I);gettime
> %2 = 187
> ? gettime;pz(0.05+10*I);gettime
> %3 = 328
> ? gettime;pz(0.01+10*I);gettime
> %4 = 2964
> ? gettime;zeta(0.5+10000*I);gettime
> %5 = 93
> ? gettime;zeta(0.5+10000*I);gettime

Just an unrelated advice:
Avoid use of complex with mixed exactness (ie. the real part is exact and the
imaginary part is inexact, or the opposite) : it is almost always better to do
pz(.5+10000.0*I) or pz(1/2+10000*I)
rather than
pz(.5+10000*I) or pz(1/2+10000.0*I)
because exact and inexact types have different semantics in PARI, and mixing
types lead to mixed semantics which are hard to predict.

Cheers,
Bill.