File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,25 @@ AbstractArray for automatic differentiation.
21
21
22
22
## Using Bracketing Methods
23
23
24
- For scalar rootfinding problems, bracketing methods exist. In this case, one passes
24
+ For scalar rootfinding problems, bracketing methods exist in ` SimpleNonlinearSolve ` . In this case, one passes
25
25
a bracket instead of an initial condition, for example:
26
26
27
27
``` @example
28
- using NonlinearSolve
28
+ using SimpleNonlinearSolve
29
29
f(u, p) = u * u - 2.0
30
30
uspan = (1.0, 2.0) # brackets
31
31
probB = IntervalNonlinearProblem(f, uspan)
32
- sol = solve(probB, Falsi())
32
+ sol = solve(probB, ITP())
33
+ ```
34
+
35
+ The user can also set a tolerance that suits the application.
36
+
37
+ ``` @example
38
+ using SimpleNonlinearSolve
39
+ f(u, p) = u * u - 2.0
40
+ uspan = (1.0, 2.0) # brackets
41
+ probB = IntervalNonlinearProblem(f, uspan)
42
+ sol = solve(probB, ITP(), abstol = 0.01)
33
43
```
34
44
35
45
## Using Jacobian Free Newton Krylov (JNFK) Methods
You can’t perform that action at this time.
0 commit comments