Learn R Programming

ecd (version 0.6.4)

ecd.rational: Utility to convert a numeric to a rational

Description

Convert a numeric x to rational p/q, which is then used for polynomial construction

Usage

ecd.rational(x)

Arguments

x
numeric

Value

a vector of two integers, representing numerator and denominator

Examples

Run this code
pq <- ecd.rational(2.5)

Run the code above in your browser using DataLab