Commit 813c7ae0 authored by Dorchies David's avatar Dorchies David
Browse files

Fix #135 Convergence PAB

Showing with 890 additions and 1 deletion
+890 -1
This diff is collapsed.
...@@ -521,7 +521,7 @@ export class Dichotomie extends Debug { ...@@ -521,7 +521,7 @@ export class Dichotomie extends Debug {
Math.abs(newStep) <= tolAct Math.abs(newStep) <= tolAct
&& ( && (
Math.abs(fb) < errorTol Math.abs(fb) < errorTol
|| Math.abs(fb / (Math.abs(fb) - Math.abs(fc))) < 1 || Math.abs(fb / fc) < 1
) )
) { ) {
return b; // Acceptable approx. is found return b; // Acceptable approx. is found
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment