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

BisectionSolver should throw an exception, if no solution is available in the interval #40

Closed
axkr opened this issue Jul 10, 2018 · 1 comment

Comments

@axkr
Copy link

@axkr axkr commented Jul 10, 2018

This is related to axkr/symja_android_library#60

This snippet returns 4.999999701976776 for the BisectionSolver

	public void testBisection() {
		BisectionSolver solver = new BisectionSolver();
		System.out.println(solver.solve(100, x->Math.cos(x)+2, 0.0, 5.0));
	}

The other solvers throw an exception, if there's no solution.

@maisonobe maisonobe closed this in 8cd1599 Jul 11, 2018
@maisonobe
Copy link
Contributor

@maisonobe maisonobe commented Jul 11, 2018

Thanks for the report.
The bug should be solved now, it is in the master branch.

axkr added a commit to axkr/symja_android_library that referenced this issue Jul 11, 2018
axkr added a commit to axkr/symja_android_library that referenced this issue Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants