Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ibex-lib changing standard double definition #740

Closed
schmittjoaopedro opened this issue Sep 29, 2020 · 0 comments
Closed

Ibex-lib changing standard double definition #740

schmittjoaopedro opened this issue Sep 29, 2020 · 0 comments
Milestone

Comments

@schmittjoaopedro
Copy link
Contributor

schmittjoaopedro commented Sep 29, 2020

After installing ibex integration for linux environments (or MacOSX), the ibex.build is changing the default double behavior for Java. The following listing presentes the problem using the pow operation before and after calling ibex.buid();

Ibex ibex = new Ibex(new double[]{0.000001, 0.000001});
ibex.add_ctr("{0}=acos({1})");
System.out.println(Math.pow(10, 6)); // Prints: 1000000.0
ibex.build();
System.out.println(Math.pow(10, 6)); // Prints: 1000000.0000000001

Environment

  • Choco-solver version: 4.10.4
  • Java version: OpenJDK 14 x64
  • Ibex: 2.8.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants