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