Skip to content

Commit eddb5a5

Browse files
authored
Tweaks
1 parent 43593b6 commit eddb5a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ x = 0.001953125
106106
x = 0.000244140625
107107
(1.0, 0.0)
108108
```
109-
which converged to machine precision (in fact, the exactly rounded result) in only 5 function evaluations (1 fewer than above).
109+
which converged to machine precision (in fact, the exact result) in only 5 function evaluations (1 fewer than above).
110110

111111
### Infinite limits
112112

@@ -167,7 +167,6 @@ function riddersderiv2(f, x, h; atol=0, rtol=atol>0 ? 0 : sqrt(eps(typeof(float(
167167
return val[1], val[2]
168168
end
169169
```
170-
The default
171170
(This code could be made even more efficient by using [StaticArrays.jl](https://github.com/JuliaArrays/StaticArrays.jl) for the `[f', f'']` vector.) The original paper by Ridders accomplishes something similar in `< 20` lines of [TI-59 calculator](https://en.wikipedia.org/wiki/TI-59_/_TI-58) code, by the way; so much for high-level languages!
172171

173172
For example,

0 commit comments

Comments
 (0)