showSymbolicQspray {symbolicQspray} | R Documentation |
Print a 'symbolicQspray' object
Description
Prints a symbolicQspray
object given a function to print
a ratioOfQsprays
object.
Usage
showSymbolicQspray(
showRatioOfQsprays,
showMonomial,
lbrace = "{ ",
rbrace = " }",
addition = " + ",
multiplication = " * "
)
Arguments
showRatioOfQsprays |
a function which prints a |
showMonomial |
a function which prints a monomial, such as
|
lbrace , rbrace |
used to enclose the coefficients |
addition |
used to separate the terms |
multiplication |
used to separate the coefficient and the monomial within a term |
Value
A function which prints a symbolicQspray
object.
Note
The function returned by this function is appropriate for usage in
showSymbolicQsprayOption<-
as the option
"showSymbolicQspray"
but in general we would rather
use showSymbolicQsprayX1X2X3
or
showSymbolicQsprayXYZ
, or rather set the options "a"
,
"X"
and "quotientBar"
.
See Also
showSymbolicQsprayX1X2X3
,
showSymbolicQsprayXYZ
.
Examples
set.seed(421)
( Qspray <- rSymbolicQspray() )
showRatioOfQsprays <-
showRatioOfQspraysXYZ(c("a", "b", "c"), quotientBar = " / ")
showMonomial <- showMonomialX1X2X3("X")
f <- showSymbolicQspray(showRatioOfQsprays, showMonomial, "{{{", "}}}")
f(Qspray)
# setting a show option:
showSymbolicQsprayOption(Qspray, "showSymbolicQspray") <- f
Qspray
# the show options are preserved by certain operations, e.g.:
2*Qspray
[Package symbolicQspray version 1.1.0 Index]