Ratio: Ratio Class

Description Usage Arguments Value See Also Examples

Description

Implements the TOL grammar "Ratio" in R.

Usage

1
2
3
4
5
Ratio(num, den)
## S3 method for class 'Ratio'
as.character(x, ...)
## S3 method for class 'Ratio'
print(x, ...)

Arguments

num, den, x

Ratio objects

...

further arguments

Value

The method print prints the expression of the Ratio object and returns it.

See Also

See the generic function print and the relative function for Polyn objects: print.Polyn.

Examples

1
2
3
4
# Gets the Ratio object expression as in TOL
as.character(Ratio(1, A+B), forward="F")
# Prints the Ratio object as in TOL
print(Ratio(1, A+B), forward="F")

tolBasis documentation built on May 2, 2019, 3:44 a.m.