Skip to content

Commit f10e52a

Browse files
authored
Merge pull request #1 from francescoalemanno/patch-1
typo
2 parents eddb5a5 + be51358 commit f10e52a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ of `h` (by factors of `1/contract`).
4848
In general, the starting `h` should be large enough that `f(x0+h)`
4949
can be computed accurately and efficiently (e.g. without
5050
severe cancellation errors), but small enough that `f` does not
51-
oscillate much between `x0` and `h`. i.e. `h` should be a typical
51+
oscillate much between `x0` and `x0+h`. i.e. `h` should be a typical
5252
scale over which the function `f` varies significantly.
5353

5454
Technically, Richardson extrapolation assumes that `f(x0+h)` can

src/Richardson.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ slow convergence from `extrapolate`, but you can pass a different
5959
value of `power` (e.g. `power=0.5`) if your `f` has some different
6060
(Puiseux) power-series expansion. Conversely, if `f` is
6161
an *even* function around `x0`, i.e. `f(x0+h) == f(x0-h)`,
62-
so that its Taylor series containsonly *even* powers of `h`,
62+
so that its Taylor series contains only *even* powers of `h`,
6363
you can accelerate convergence by passing `power=2`.
6464
"""
6565
function extrapolate(f, h_::Number; contract::Real=0.125, x0::Number=zero(h_), power::Number=1,

0 commit comments

Comments
 (0)