Ratrecon - inert rational function reconstruction
|
Calling Sequence
|
|
Ratrecon(u, m, x, N, D) mod p
Ratrecon(u, m, x, N, D, 'n', 'd') mod p
|
|
Parameters
|
|
u, m
|
-
|
polynomials in x
|
x
|
-
|
name
|
N, D
|
-
|
(optional) non-negative integers
|
n, d
|
-
|
(optional) variables
|
p
|
-
|
integer > 1
|
|
|
|
|
Description
|
|
•
|
Given and non-negative integers N and D, if the call Ratrecon(u,m,x,N,D) mod p succeeds then the output is a rational function n/d in x such that
|
|
Otherwise Ratrecon returns FAIL indicating that no such polynomials n and d exist. The reconstruction is unique up to multiplication by a constant in if the following condition holds.
|
•
|
If the optional parameters N and D are not specified then they are determined by the degree of m. They are assigned the largest possible values satisfying the above constraint such that N=D or N-D=1.
|
•
|
If the optional parameters n and d are specified then Ratrecon returns either true or false. If rational reconstruction succeeds then true is returned and these parameters are assigned the numerator and denominator separately, otherwise false is returned and these parameters are not changed.
|
•
|
The special case of corresponds to computing the (N, D) Pade approximate to the series u of order .
|
•
|
If the first input u is a polynomial in variables other than x then Ratrecon is applied to the coefficients of the polynomial in those variables. See the last example in the Examples section.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
>
|
|
|
|
Download Help Document
Was this information helpful?