Description Usage Arguments Value Methods (by class) Examples
Generic function for extracting numerators with methods for "fractional"
or
"charFrac"
objects
Generic function for extracting denominators with methods for "fractional"
or
"charFrac"
objects
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | numerators(x)
## S3 method for class 'charFrac'
numerators(x)
## S3 method for class 'fractional'
numerators(x)
## Default S3 method:
numerators(x)
denominators(x)
## S3 method for class 'charFrac'
denominators(x)
## S3 method for class 'fractional'
denominators(x)
## Default S3 method:
denominators(x)
|
x |
An object of class |
An integer
vector of numerators
An integer
vector of denominators
charFrac
: numerators
method function for "charFrac"
objects
fractional
: numerators
method function for "fractional"
objects
default
: Default numerators
method for numeric
objects
charFrac
: denominators
method function for "charFrac"
objects
fractional
: denominators
method function for "fractional"
objects
default
: Default denominators
method for numeric
objects
1 2 3 | (pi_approx <- vfractional(base::pi, eps = 0, maxConv = 1:10))
numerators(pi_approx)
denominators(pi_approx)
|
[1] 3 22/7 333/106 355/113 103993/33102
[6] 104348/33215 208341/66317 312689/99532 833719/265381 1146408/364913
[1] 3 22 333 355 103993 104348 208341 312689 833719
[10] 1146408
[1] 1 7 106 113 33102 33215 66317 99532 265381 364913
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.