fracMake {Rfractran}R Documentation

Function to Create a Sequence of bigq Fractions

Description

Feed this function a collection of numerator and denominator values; get a vector of bigq fractions suitable for use as a FRACTRAN program.

Usage

fracMake(n, d = NULL)

Arguments

n

Vector of integers to be used as numerators, or a Nx2 array of integers where each row contains a num, denom pair. If this is an arry, the input d is ignored.

d

Vector of integers to be used as denominators. Ignored if n is an array

Value

Vector of bigq fractions.

Author(s)

Carl Witthoft <carl@witthoft.com>


[Package Rfractran version 1.0.1 Index]