fraction_parts | R Documentation |
Get numerator and denominator of a fraction
fraction_parts(x)
numerator(x)
denominator(x)
x |
Fraction |
if (has_sympy()) {
x <- as_sym("a/b")
frac <- fraction_parts(x)
frac
frac$numerator
frac$denominator
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.