showRatioOfQspraysXYZ {ratioOfQsprays} | R Documentation |
Print a 'ratioOfQsprays'
Description
Print a ratioOfQsprays
object given some letters to
denote the variables, by printing monomials in the style of
"x^2.yz"
.
Usage
showRatioOfQspraysXYZ(
letters = c("x", "y", "z"),
quotientBar = " %//% ",
...
)
Arguments
letters |
a vector of strings, usually some letters such as |
quotientBar |
a string representing the quotient bar between the
numerator and the denominator, including surrounding spaces,
e.g |
... |
arguments other than |
Value
A function which takes as argument a ratioOfQsprays
object
and which prints it.
Note
The function returned by this function can be used as the option
"showRatioOfQsprays"
of the setter function
showRatioOfQspraysOption<-
.
As another note, let us describe the behavior of this function in a
case when the number of variables of the ratioOfQsprays
object to
be printed is bigger than the number of provided letters. In such a case,
the output will be the same as an application of the function
showRatioOfQspraysX1X2X3(x)
with x
being the first letter
provided. See the example.
See Also
showRatioOfQspraysX1X2X3
,
showRatioOfQspraysOption<-
.
Examples
set.seed(666)
( roq <- rRatioOfQsprays() )
showRatioOfQspraysXYZ(c("X", "Y", "Z"), " / ")(roq)
# now take a ratioOfQsprays with four variables:
roq <- roq * qlone(4)
# then the symbols X1, X2, X3, X4 denote the variables now:
showRatioOfQspraysXYZ(c("X", "Y", "Z"), " / ")(roq)
# this is the method used by default to print the ratioOfQsprays objects,
# with the initial letters x, y, z which then become x1, x2, x3, x4:
roq