Fixed in the trunk! That was a pain in the back... Christian -- Christian Schulte, www.ict.kth.se/~cschulte/
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Kish Shen > Sent: Monday, July 22, 2013 11:27 PM > To: [email protected] > 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 > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
