Jeroen Demeyer on Thu, 09 Jul 2015 14:30:23 +0200


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

gp2c testsuite failure


With PARI 2.8.0 (development git-489005a) and gp2c-0.0.9pl3, I get

Running test traditionnal
[...]
Running test closure
Testing script apply...OK.
Testing script call...OK.
Testing script closure...OK.
Testing script lambda...OK.
Testing script printf...OK.
Testing script sums...BUG.
Testing script vararg...OK.
FAIL: scripts/runtest
==================
1 of 1 test failed
==================


Running gp2c manually gives:

$ gp2c test2/gp/sums.gp
[...]
static GEN
anon_3(GEN x, long prec)
{
  return ggamma(x, prec);
}

static GEN
Error:test2/gp/sums.gp:anon_3: too few arguments in lambda

wrap_anon_3(void * _cargs, GEN x, long


The problem seems to be this line:
dgamma(s)=derivnum(x=s,gamma(x))