All functions

is.rationalS3() is.rationalR6() is.rationalS4() is.rational()

Is an object from class rational Test if an object is of class "rationalS3", "rationalS4", or "rationalR6"

rational() length(<rationalS4>) length(<rationalS3>) length(<rationalR6>) `[`(<rationalS4>) `[<-`(<rationalS4>) `[[`(<rationalS4>) `[[<-`(<rationalS4>) `[`(<rationalS3>) `[<-`(<rationalS3>) `[[`(<rationalS3>) `[[<-`(<rationalS3>) `[`(<rationalR6>) `[[`(<rationalR6>) print(<rationalS4>) show(<rationalS4>) print(<rationalS3>) print(<rationalR6>)

Rational Number Classes

Compare(<rationalS4>,<numeric>) Compare(<rationalS4>,<integer>) Compare(<numeric>,<rationalS4>) Compare(<integer>,<rationalS4>) Compare(<rationalS4>,<rationalS4>) Ops(<rationalS3>) Ops(<rationalR6>)

Rational Number Comparisons

Math(<rationalS4>) Math(<rationalS3>) Math(<rationalR6>) Math2(<rationalS4>) abs(<rationalS4>) abs(<rationalS3>) abs(<rationalR6>) log(<rationalS4>) log(<rationalS3>) log(<rationalR6>) log10(<rationalS4>) log10.rationalS3() log10.rationalR6() logb(<rationalS4>) logb.rationalS3() logb.rationalR6() log2(<rationalS4>) log2.rationalS3() log2.rationalR6() gamma(<rationalS4>) gamma(<rationalS3>) gamma(<rationalR6>) max(<rationalS4>) max(<rationalS3>) max(<rationalR6>) min(<rationalS4>) min(<rationalS3>) min(<rationalR6>) range(<rationalS4>) range(<rationalS3>) range(<rationalR6>) prod(<rationalS4>) prod(<rationalS3>) prod(<rationalR6>) sum(<rationalS4>) sum(<rationalS3>) sum(<rationalR6>)

Functions of Rational Numbers

`+`(<rationalS4>,<rationalS4>) `+`(<integer>,<rationalS4>) `+`(<rationalS4>,<integer>) `+`(<numeric>,<rationalS4>) `+`(<rationalS4>,<numeric>) `+`(<rationalS3>) `+`(<rationalR6>) `*`(<rationalS4>,<rationalS4>) `*`(<integer>,<rationalS4>) `*`(<rationalS4>,<integer>) `*`(<numeric>,<rationalS4>) `*`(<rationalS4>,<numeric>) `*`(<rationalS3>) `*`(<rationalR6>) `/`(<rationalS4>,<rationalS4>) `/`(<integer>,<rationalS4>) `/`(<rationalS4>,<integer>) `/`(<numeric>,<rationalS4>) `/`(<rationalS4>,<numeric>) `/`(<rationalS3>) `/`(<rationalR6>) `^`(<rationalS4>,<rationalS4>) `^`(<rationalS4>,<integer>) `^`(<integer>,<rationalS4>) `^`(<rationalS4>,<numeric>) `^`(<numeric>,<rationalS4>) `^`(<rationalS3>) `^`(<rationalR6>) `%/%`(<rationalS4>,<rationalS4>) `%/%`(<integer>,<rationalS4>) `%/%`(<rationalS4>,<integer>) `%/%`(<numeric>,<rationalS4>) `%/%`(<rationalS4>,<numeric>) `%/%`(<rationalS3>) `%/%`(<rationalR6>) `%%`(<rationalS4>,<rationalS4>) `%%`(<integer>,<rationalS4>) `%%`(<rationalS4>,<integer>) `%%`(<numeric>,<rationalS4>) `%%`(<rationalS4>,<numeric>) `%%`(<rationalS3>) `%%`(<rationalR6>) `-`(<rationalS4>,<rationalS4>) `-`(<integer>,<rationalS4>) `-`(<rationalS4>,<integer>) `-`(<numeric>,<rationalS4>) `-`(<rationalS4>,<numeric>) `-`(<rationalS3>) `-`(<rationalR6>)

Rational Number Arithmetic

rational-package

A rational number class using multiple R class paradigms

as.numeric(<rationalS4>) as.integer(<rationalS4>) as.character(<rationalS4>) as.rationalS4() as.rationalS3() as.double(<rationalS3>) as.integer(<rationalS3>) as.rationalR6() as.double(<rationalR6>) as.integer(<rationalR6>)

Rational Transformations