-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
35 lines (29 loc) · 753 Bytes
/
repl.txt
File metadata and controls
35 lines (29 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{alias}}( f, a, b[, options] )
Finds a zero of a continuous function `f` on the interval `[a, b]`.
Parameters
----------
f: Function
Objective function.
a: number
Lower bound.
b: number
Upper bound.
options: Object (optional)
Function options.
options.maxIter: number (optional)
Maximum number of iterations. Default: 100.
options.xtol: number (optional)
Absolute tolerance. Default: 2e-12.
options.rtol: number (optional)
Relative tolerance. Default: 8.88e-16.
Returns
-------
x: number
Zero.
Examples
--------
> function f( x ) { return x*x - 1.0; };
> {{alias}}( f, 0.0, 2.0 )
1.0
See Also
--------