Description Usage Arguments Value Functions See Also Examples
This is a behind-the-scenes function not likely to be used other than internally within the package. It computes the rational approximations for each value in the principal argument.
1 2 3 4 5 |
x |
A numeric vector for which rational approximations are required. |
eps |
An absolute error tolerance on the approximation |
maxConv |
An upper limit on the number of convergents that the continued fraction expansion may employ. The fraction is terminated once the desired accuracy is met (or the upper limit is about to be exceeded). |
A 3 column matrix giving, respectively, the numerators, denominators and number of convergents needed to achieve the error tolerance, in the columns
rat
: C++ version of the same function used for speed
.ratr
: Workhorse function for a single value
rat
which has the same functionality, but is coded in C++
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.