Damn it, the code ignores odd exponents... I'll fix it sometime. Thanks for letting us know. Christian
-- Christian Schulte, www.ict.kth.se/~cschulte/ > -----Original Message----- > From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On > Behalf Of Kish Shen > Sent: Monday, July 22, 2013 11:27 PM > To: users@gecode.org > Subject: [gecode-users] nroot for negative integers > > Hi, > > I have just added support for pow and nroot to expressions in the ECLiPSe > interface to Gecode, and on testing it, I get failures with negative numbers, for > example (in ECLiPSe syntax): > > A #= rootn(-8,3) > > fails, while > > A #= rootn(8, 3) > > succeeds, with A = 2. > > Should the first case set A to -2? > > The above expressions are passed to MiniModel and parsed as IntExpr. I used > Gecode 4.2.0 for the above tests. > > Cheers, > > Kish > > > > _______________________________________________ > Gecode users mailing list > users@gecode.org > https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users