[gecode-users] nroot for negative integers

Christian Schulte cschulte at kth.se
Thu Aug 29 16:06:25 CEST 2013


Fixed in the trunk! That was a pain in the back... Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/


> -----Original Message-----
> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On
> Behalf Of Kish Shen
> Sent: Monday, July 22, 2013 11:27 PM
> To: users at 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 at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users




More information about the users mailing list