A particular use of e02rbf is to compute values of the Padé approximants determined by e02raf.
Conte S D and de Boor C (1965) Elementary Numerical Analysis McGraw–Hill
Peters G and Wilkinson J H (1971) Practical problems arising in the solution of polynomial equations J. Inst. Maths. Applics.8 16–35
1: – Real (Kind=nag_wp) arrayInput
On entry: , for , must contain the value of the coefficient in the numerator of the rational function.
2: – IntegerInput
On entry: the value of , where is the degree of the numerator.
3: – Real (Kind=nag_wp) arrayInput
On entry: , for , must contain the value of the coefficient in the denominator of the rational function.
if , .
4: – IntegerInput
On entry: the value of , where is the degree of the denominator.
5: – Real (Kind=nag_wp)Input
On entry: the point at which the rational function is to be evaluated.
6: – Real (Kind=nag_wp)Output
On exit: the result of evaluating the rational function at the given point .
7: – IntegerInput/Output
On entry: ifail must be set to , or to set behaviour on detection of an error; these values have no effect when no error is detected.
A value of causes the printing of an error message and program execution will be halted; otherwise program execution continues. A value of means that an error message is printed while a value of means that it is not.
If halting is not appropriate, the value or is recommended. If message printing is undesirable, then the value is recommended. Otherwise, the value is recommended. When the value or is used it is essential to test the value of ifail on exit.
On exit: unless the routine detects an error or a warning has been flagged (see Section 6).
6Error Indicators and Warnings
If on entry or , explanatory error messages are output on the current error message unit (as defined by x04aaf).
An unexpected error has been triggered by this routine. Please
See Section 7 in the Introduction to the NAG Library FL Interface for further information.
Your licence key may have expired or may not have been installed correctly.
See Section 8 in the Introduction to the NAG Library FL Interface for further information.
Dynamic memory allocation failed.
See Section 9 in the Introduction to the NAG Library FL Interface for further information.
A running error analysis for polynomial evaluation by nested multiplication using the recurrence suggested by Kahan (see Peters and Wilkinson (1971)) is used to detect whether you are attempting to evaluate the approximant at or near a pole.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
e02rbf is not threaded in any implementation.
The time taken is approximately proportional to .
This example first calls e02raf to calculate the Padé approximant to , and then uses e02rbf to evaluate the approximant at .