Debian Codegraph @

ode-initval/TODO

raw
1 # -*- org -*-
2 #+CATEGORY: ode-initval
3
4 * Add a higher level interface which accepts a
5
6 start point,
7 end point,
8 result array (size N, y0, y1, y2 ... ,y(N-1))
9 desired relative and absolute errors epsrel and epsabs
10
11 it should have its own workspace which is a wrapper around the
12 existing workspaces
13
14 * Implement other stepping methods from well-known packages such as
15 RKSUITE, VODE, DASSL, etc
16
17 * Roundoff error needs to be taken into account to prevent the
18 step-size being made arbitrarily small
19
20 * The entry below has been downgraded from a bug. We use the
21 coefficients given in the original paper by Prince and Dormand, and it
22 is true that these are inexact (the values in the paper are said to be
23 accurate 18 figures). If somebody publishes exact versions we will
24 use them, but at present it is better to stick with the published
25 versions of the coefficients them use our own.
26 ----------------------------------------------------------------------
27 BUG#8 -- inexact coefficients in rk8pd.c
28
29 From: Luc Maisonobe <[email protected]>
30 To: [email protected]
31 Subject: further thoughts about Dormand-Prince 8 (RK8PD)
32 Date: Wed, 14 Aug 2002 10:50:49 +0200
33
34 I was looking for some references concerning Runge-Kutta methods when I
35 noticed GSL had an high order one. I also found a question in the list
36 archive (April 2002) about the references of this method which is
37 implemented in rk8pd.c. It was said the coefficients were taken from the
38 "Numerical Algorithms with C" book by Engeln-Mullges and Uhlig.
39
40 I have checked the coefficients somewhat with a little java tool I have
41 developped (see http://www.spaceroots.org/archive.htm#RKCheckSoftware)
42 and found they were not exact. I think this method is really the method
43 that is already in rksuite (http://www.netlib.org/ode/rksuite/) were the
44 coefficients are given as real values with 30 decimal digits. The
45 coefficients have probably been approximated as fractions later on.
46 However, these approximations are not perfect, they are good only for
47 the first 16 or 18 digits depending on the coefficient.
48
49 This has no consequence for practical purposes since they are stored in
50 double variables, but give a false impression of beeing exact
51 expressions. Well, there are even some coefficients that should really
52 be rational numbers but for which wrong numerators and denominators are
53 given. As an example, the first and fourth elements of the b7 array are
54 given as 29443841.0 / 614563906.0 and 77736538.0 / 692538347, hence the
55 sum off all elements of the b7 array (which should theoretically be
56 equal to ah[5]) only approximate this. For these two coefficients, this
57 could have been avoided using 215595617.0 / 4500000000.0 and
58 202047683.0 / 1800000000.0, which also looks more coherent with the
59 other coefficients.
60
61 The rksuite comments say this method is described in this paper :
62
63 High Order Embedded Runge-Kutta Formulae
64 P.J. Prince and J.R. Dormand
65 J. Comp. Appl. Math.,7, pp. 67-75, 1981
66
67 It also says the method is an 8(7) method (i.e. the coefficients set
68 used to advance integration is order 8 and error estimation is order 7).
69 If I use my tool to check the order, I am forced to check the order
70 conditions numerically with a tolerance since I do not have an exact
71 expression of the coefficients. Since even if some conditions are not
72 mathematically met, the residuals are small and could be below the
73 tolerance. There are tolerance values for which such numerical test
74 dedeuce the method is of order 9, as is said in GSL. However, I am not
75 convinced, there are to few parameters for the large number of order
76 conditions needed at order 9.
77
78 I would suggest to correct the coefficients in rk8pd.c (just put the
79 literal constants of rksuite) and to add the reference to the article.
80
81 ----------------------------------------------------------------------