numerators {fractional} | R Documentation |
Extract the parts of a fractional object
Description
Generic function for extracting numerators with methods for "fractional"
or
"charFrac"
objects
Generic function for extracting denominators with methods for "fractional"
or
"charFrac"
objects
Usage
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)
Arguments
x |
An object of class |
Value
An integer
vector of numerators
An integer
vector of denominators
Methods (by class)
-
charFrac
:numerators
method function for"charFrac"
objects -
fractional
:numerators
method function for"fractional"
objects -
default
: Defaultnumerators
method fornumeric
objects -
charFrac
:denominators
method function for"charFrac"
objects -
fractional
:denominators
method function for"fractional"
objects -
default
: Defaultdenominators
method fornumeric
objects
Examples
(pi_approx <- vfractional(base::pi, eps = 0, maxConv = 1:10))
numerators(pi_approx)
denominators(pi_approx)
[Package fractional version 0.1.3 Index]